The first problem we may encounter is:
The builds tools for v120 (Platform Toolset = 'v120') cannot be found
Because the default compiler is VS 2012.
Thanks for this post:
Cannot install node modules that require compilation on Windows 7 x64/VS2012
npm install zmq --msvs_version=2015
Just add msvs_version=.... then you can compile with any version of visual studio. Remember to install windows SDK first.
A final reminder is
Nodejs cannot find installed module on Windows?
To use ZMQ globally, add an environment variable NODE_PATH=%AppData%\npm\node_modulesThat's it. Enjoy ZMQ!
沒有留言:
張貼留言