当我尝试收到此错误时,无法在Atom中安装Hydrogen等软件包
> zmq@2.15.3 install C:\Users\JORDAN~1\AppData\Local\Temp\apm-install-dir-11672-8972-1vrxp0c\node_modules\deuterium\node_modules\jmp\node_modules\zmq
> node-gyp rebuild
C:\Users\JORDAN~1\AppData\Local\Temp\apm-install-dir-11672-8972-1vrxp0c\node_modules\deuterium\node_modules\jmp\node_modules\zmq>if not defined npm_config_node_gyp (node "C:\Users\Jordan Baron\AppData\Local\atom\app-1.9.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\Jordan Baron\\AppData\\Local\\atom\\app- 1.9.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Jordan Baron\\AppData\\Local\\atom\\app-1.9.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Jordan Baron\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Jordan Baron\\.atom\\.apmrc" "install" "C:\\Users\\JORDAN~1\\AppData\\Local\\Temp\\d-11672-8972- ovgc8u\\package.tgz" "--target=0.37.8" "--arch=ia32"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! zmq@2.15.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
我在Windows 10 64位上,我有Python 2.7和最新的Visual Studio版本和Git。我已经尝试过安装Python 3.5,但这不起作用。我也安装了节点。
答案 0 :(得分:1)
我遇到了同样的问题。我在命令行中输入apm install hydrogen
解决了这个问题。奇怪的是,它可以通过命令行安装,而不是安装按钮。
祝福!
答案 1 :(得分:0)
我通过暂时关闭防病毒保护解决了这个问题。