node.js - 无法在Windows中通过npm安装 Node ZeroMQ

标签 node.js npm queue zeromq

我们正在尝试通过npm在windows8 64位上安装zeromq *我们安装Visual Studio 2010和Python 但我们仍然收到如下错误:

D:\Projects\changi\node_modules\zmq>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-g
yp.js" rebuild )  else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: spawn C:\Python27 ENOENT
gyp ERR! stack     at exports._errnoException (util.js:849:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
gyp ERR! stack     at onErrorNT (internal/child_process.js:344:16)
gyp ERR! stack     at doNTCallback2 (node.js:430:9)
gyp ERR! stack     at process._tickCallback (node.js:344:17)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Projects\changi\node_modules\zmq
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "zmq"
npm ERR! node v4.1.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! zmq@2.14.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.14.0 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.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\Projects\changi\npm-debug.log

您能否告诉我们缺少什么,或者向我们指出一些可以帮助我们做到这一点的文档,谢谢您的宝贵时间

最佳答案

设置 PYTHON 环境变量。

关于node.js - 无法在Windows中通过npm安装 Node ZeroMQ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33889962/

相关文章:

npm - 如何在没有源代码的情况下安装 npm 包

node.js - 在 ExtendScript 中使用 npm 包

java - BlockingQueue 的 take() 方法的延迟是多少?

go - 如何(简洁地)从 Go 中的 slice 中删除第一个元素?

javascript - 内容处置:附件不触发下载对话框

Node.js 生成子进程并实时获取终端输出

node.js - grunt-newer 无法与 Watchify 一起正常工作

javascript - Sequelize 一次仅考虑一个关联

node.js - 执行 "npm install"时出现很多错误

linux - c - 内核 - 自旋锁与队列