1

无法在 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 但这不起作用。我也安装了节点。

4

2 回答 2

2

我有同样的问题。我通过输入apm install hydrogen命令行解决了这个问题。奇怪的是,它可以通过命令行安装,而通过安装按钮却不能。

最好的祝愿!

于 2017-05-05T13:48:05.357 回答
0

我通过暂时关闭防病毒保护解决了这个问题。

于 2020-02-13T16:04:32.820 回答