node.js - ZMQ安装失败

标签 node.js npm zeromq

我尝试安装 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/

相关文章:

node.js - 查询失败错误 : the column "price" contain null values - TypeORM - PostgreSQL

javascript - 用于 Node.js 的 ZeroMQ 是否与 Electron 兼容?

javascript - 为什么 Express 属性 ip 没有出现在 Object.keys(request) 中?

node.js - 如何使用 Kraken.js 为 Bookshelf 配置 Knex

node.js - Firebase/Node.js,正确使用 on.Disconnect()

java - ZeroMQ 的 native 库 - 它们可以移动吗?

c++ - ZeroMQ 简单代理

npm - 为什么 “npm install” 更改 package-lock.json 并添加波浪号或上限?

node.js - Node 。并且 npm start 不起作用

node.js - 如何将 NPM 配置为信任防火墙颁发者以进行 HTTPS 代理?