Compiling node. JS source code in a Windows system

Source: Internet
Author: User

node. JS can only be compiled by Microsoft Visual Studio under Windows, so you'll need to install VisualStudio or free Visual studio Express first. You also need to install Python 2 (more than 2.5 versions, but less than 3.0), which can be obtained at http://python.org/. After you install Python, make sure that you add the directory where Python.exe is located in the PATH environment variable, and if not, you need to manually add it in System properties. When everything is ready, open a command prompt and go to the directory where node. JS source code is compiled: C:\users\byvoid\node-v0.6.12>vcbuild.bat release['-f ', ' MSVs ', '-G ', ' msvs_version=2010 ', '. \\node.gyp ', '-I ', '. \\common.gypi ', '--depth=. ', '-dtarget_project files generated. C:\Program Files (x86) \msbuild\microsoft.cpp\v4.0\microsoft.cppbuild.targets (1151,5): Warning MSB8012:HTTP_ Parser.vcxproj, C:\Users\byvoid\node-v0.6.12\ Release\http_parser.lib js2c, and also js2c_experimental node_js2c. .. Wait approximately 20 minutes for the compilation to complete. There will be a Node.exe file under the release subdirectory, which is the only goal we compile. It may be surprising that node. JS compiles with only one Node.exe file, which means that the core of node. JS is very small. Run Node.exe directly to the node. JS Interactive mode and add the directory where the Node.exe file resides in the system PATH environment variable so that node can be run on the command line

Compiling node. JS source code in a Windows system

Related Article

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.