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
答案 0 :(得分:-1)
尝试将c:\ windows \ system32添加到PATH