Configuring the Nodejs C + + module compilation environment under Windows
According to NODE-GYP instructions for the Windows compilation environment, a simple word is "Python + VC + + compilation environment."
All the required installation files, I have downloaded good to Baidu Cloud disk: nodejs-gyp-windows
Python
- Installing Python-2.7.7.msi
ISO Virtual Disk
- Installing Dtlite4491-0356.exe
Windows XP
Files in: node-gyp-windows/windowsxp
- Open the Vs2010express1.iso with Dtlite, then the installation
Visual Studio C++ 2010 is OK, the other does not need to install
Windows 7
Files in: Node-gyp-windows/windows7
- Open the Vs2012_wdx_enu.iso with Dtlite, then click "Install" to OK, will install the entire
Visual Studio Express 2012
Compile your first Nodejs C + + module
Let's say you're usingnode v0.10.29
Here is an example of installing the microtime module:
$ npm install microtime --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist
Test installation Compilation results:
$ node -e ‘console.log("now is %d ms", require("microtime").now())‘
Configuring the Nodejs C + + module compilation environment under Windows installation Node-gyp