简体   繁体   English

Phonegap安装错误npm

[英]Phonegap installation error npm

windows 7 64 bit. Windows 7的64位。

To install Phonegap I had to install Node.js (v0.10.33) on my system. 要安装Phonegap,我必须在系统上安装Node.js(v0.10.33)。 After this I opened up Windows Powershell and issued the following command like instructed on the Phonegap website: 此后,我打开了Windows Powershell,并按照Phonegap网站上的指示发出了以下命令:

npm install -g phonegap

Output: (This is the only part of the error) 输出:(这是错误的唯一部分)

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