Update 10/05/2011: If you are installing on Windows 7 64 bit, please read this comment. Thanks idealogue!
Update 09/20/2011: I was able to successfully install the latest NodeJS stable version (v0.4.12) so, I am updating these instructions to reflect that.
If you are planning on upgrading NodeJS from an older version to a newer one, just follow from Step 7.
Pre-requisites: Cygwin with Python & some additional packages (we’ll go over that in a bit)
- Double click Cygwin’s setup.exe and continue till you get to select packages window
- Select Python
- Select Make
- Select G++
- Select wget(not really required but, good to have for downloading archives & stuffs )
- Click next and complete the installation
From cygwin type the following commands. Note: At the time of this writing v0.2.0 is the current NodeJS version.
wget http://nodejs.org/dist/node-v0.4.12.tar.gz tar xvf node-v0.4.12.tar.gz cd node-v0.4.12/ ./configure make make install
If all goes well, then you should see NodeJS’s version when you type the following command.
node --version v0.4.12
For Windows 7 & Windows Vista users, please run rebaseall with -v option as suggested in this comment.
Thanks Vladimir for your suggestion
Now its time to crack some code to your heart’s desire