[英]With Node 0.12.2 and npm 2.7.4 ionic installation error on windows 7
我下載了用於64位Windows 7 OS的節點安裝文件“ node-v0.12.2-x64.msi”。 所有的節點和npm命令都可以正常工作。 我檢查了節點和npm版本。
但是,當我嘗試通過以下命令安裝ionic時:
npm install -g cordova ionic
它給了我以下錯誤:
npm WARN engine cordova-js@3.9.0: wanted: {"node":"~0.10.x"} (current: {"node":"
0.12.2","npm":"2.7.4"})
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":
"0.12.2","npm":"2.7.4"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {
"node":"0.12.2","npm":"2.7.4"})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bund
led package wasn't found in unpacked tree
npm ERR! tar.unpack untar error C:\Users\Biswarup\AppData\Local\Temp\npm-1484-8b
f97a1e\registry.npmjs.org\request\-\request-2.9.203.tgz
npm ERR! cb() never called!
在所有情況下,Biswarup是我的用戶名。
我檢查了以下鏈接以進行故障排除,但對我來說沒有任何用處。
https://github.com/diegonetto/generator-ionic/issues/42
請指導我,我完全陷入了困境。 嘗試刪除節點js並重新安裝它很多次。 但是,一切都不對。
首先,所有軟件包都會警告您,它要求使用nodejs 0.10.x,這可能就是原因。 您可以升級npm並嘗試找到新版本的另一種嘗試。 因此,請按以下步驟操作:
npm cache clean
npm update -g npm
npm cache clean
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.