You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DTrejo edited this page Aug 6, 2010
·
15 revisions
How to Build and Install Node.JS on Windows
Install Cygwin and use setup.exe in the cygwin folder for the following substeps
Install devel → openssl
Install devel → g++-gcc
Install devel → make
Install python → python
Install devel → git
Clone the repo (open the cygwin command line with Start > Cygwin > Cygwin Bash Shell)
git clone git://github.com/ry/node.git
run the following commands in the node folder created above
./configure
make
make test
(There will be some test failures in windows)
Build problems:
C:\Program Files\Python27\python.exe: can’t open file ‘/cygdrive/c/node/tools/waf-light’: [Errno 2] No such file or directory
This is not an issue with node. You are using the Windows version of python in Cygwin (and it doesn’t know how to process Cygwin style pathnames). You need to remove the Windows version (or make sure is not in the path) and install the Cygwin version of python.
Know issues:
domain name resolution
Cygwin internally uses Windows for DNS queries. Node.js uses the c-ares library that relies on /etc/resolv.conf. Cygwin ships with an empty /etc/resolv.conf. In order to enabled networking add a domain name server to the file:
# add the IP of a valid name server
nameserver 11.22.33.44
Help! I’ve done EVERYTHING above and I’m still having trouble!
If you’ve tried all of the above steps, and you still need some help, pop into the #node.js chat channel on irc.freenode.net.