Raj Raj - 5 months ago 49
Node.js Question

how to install zeromq for node.js

I want to install zeromq for node.js in Windows 7 64-bit. I tried with

npm install zmq

It gave
is missing. After installing that
python (2.7.3)

Again it gave some build error, which is as follows:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1


Update 1

Improvements were made, now npm install zmq works, but you still need Win SDK 7 and VS C++ 2010, I think.

Original Answer

Unfortunately npm install zmq still don't work, but you can install it from local repo.

mscdex forked the zeromq.node repo, and added windows support, so just clone his zeromq.node

But before build you need some prerequisites:

Run the Windows SDK 7.1 Command Prompt from Start menu / Microsoft Windows SDK v7.1

go to the cloned directory, and type

node-gyp configure
node-gyp build

this should work on windows 7 64bit. I cloned zeromq.node into my node project dir, so in my app.js i could require('./zeromq.node').