gpt4 book ai didi

node.js - ZMQ安装失败

转载 作者:太空宇宙 更新时间:2023-11-03 22:37:27 26 4
gpt4 key购买 nike

我尝试安装 ZMQ

我的环境版本是

C:\Windows\system32>npm version
{ http_parser: '1.0',
node: '0.10.29',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.27',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1h',
npm: '1.4.14' }
<小时/>

我要安装zmq

所以我输入“npm install zmq”

C:\Windows\system32>npm install zmq  
-
> zmq@2.7.0 install C:\Windows\system32\node_modules\zmq
> node-gyp rebuild
\
C:\Windows\system32\node_modules\zmq>node "C:\Program Files\nodejs\node_modules\
npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
/MSBUILD : error MSB1009: 프로젝트 파일이 없습니다.
스위치: build/binding.sln
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809: 12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\node_modules\zmq
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! zmq@2.7.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.7.0 install script.
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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "zmq"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Windows\system32\npm-debug.log
npm ERR! not ok code 0

错误MSB1009表示没有项目文件

已安装 Visual Studio 2013

我该如何解决这个问题?

或者如何为node js安装ZMQ?

最佳答案

我找到了解决方案

“set PYTHON=C:\Python27\python.exe”即可解决问题

关于node.js - ZMQ安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24377094/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com