我在Windows 7 x64计算机上运行此程序:
npm install -g karma
npm WARN optional dep failed, continuing fsevents@0.3.0
-
> ws@0.4.32 install C:\Users\developer\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)
在最后一行之后它就挂起来了!
我想尽了办法
-卸载/重新安装节点(0.10.32)
-从用户appdata中删除node_packages文件夹
-正在检查builderror.log文件(它为空)
-安装nodex32和x64,同样的问题
-等待:)
有趣的是,当node.exe被挂起时,它会占用一个CPU。我不确定它是真的在做什么还是被绞死了。
有什么想法吗?
L.E.:这似乎是node gyp的问题,例如运行。
node-gyp configure or
node-gyp rebuild
也挂在
gyp info using node@0.10.32 | win32 | ia32
最佳答案
这可能只是与webdriverjs中的this issue有关,which also affects Protractor而且,不幸的是,还没有解决。显然,临时解决办法是install everything described in this blog post by someone。
关于node.js - Npm install karma卡在node-gyp重建上,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26275117/