无法在Windows Vista上为angular-phonecat教程安装业力

时间:2014-12-12 16:15:00

标签: windows angularjs node.js karma-runner

我正在尝试通过angular-phonecat教程。 npm安装对我来说失败了,所以我单独安装了打包,除了为我失败的业力。有人可以帮我解决这个问题。 ws编译似乎是Windows的一个已知问题,给出的解决方案是更新npm或重新安装nodeJs,我已经完成了这两个,我仍然得到下面的错误。请帮忙。

$ npm install -g karma

npm WARN optional dep failed, continuing fsevents@0.3.1

ws@0.4.32 install C:\Users\user\AppData\Roaming\npm\node_modules\karma\node_
modules\socket.io\node_modules\socket.io-client\node_modules\ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

npm ERR! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ws@0.4.32 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.0.6002
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "karma"
npm ERR! cwd c:\JavaScript\angular-phonecat
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0

0 个答案:

没有答案