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