簡體   English   中英

Phonegap安裝錯誤npm

[英]Phonegap installation error npm

Windows 7的64位。

要安裝Phonegap,我必須在系統上安裝Node.js(v0.10.33)。 此后,我打開了Windows Powershell,並按照Phonegap網站上的指示發出了以下命令:

npm install -g phonegap

輸出:(這是錯誤的唯一部分)

C:\Users\TRUEValentine>npm install -g phonegap
npm WARN deprecated deflate-crc32-stream@0.1.2: module has been merged into crc3
2-stream
|


> ws@0.4.31 install C:\Users\TRUEValentine\AppData\Roaming\npm\node_modules\phon
egap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\engine.io
\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

|


> ws@0.4.31 install C:\Users\TRUEValentine\AppData\Roaming\npm\node_modules\phon
egap\node_modules\connect-phonegap\node_modules\socket.io\node_modules\socket.io
-client\node_modules\engine.io-client\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm ERR! ws@0.4.31 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.31 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR!     npm owner ls ws
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\Users\TRUEValentine
npm ERR! node -v v0.10.33

嘗試將c:\\ windows \\ system32添加到您的PATH中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM