Configuring the Nodejs C + + module compilation environment under Windows installation Node-gyp

Source: Internet
Author: User

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 entireVisual 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.