How do I Install node.js on my windows Machine?? I Searched All the available blogs for info, I found none of them are useful. so Is it possible for me to install
node.js on my windows machine. If the answer is yes can anyone please explain the procedure. BTW
I’m using windows XP
I was able to get Node running perfectly well on XP by using Cygwin. These instructions worked well for me.
It’s worth noting that there is now a native Node.JS port for Windows. Use that rather than stuff with CygWin.
They now have node.exe that you can download and run directly, no need for cygwin. See nodejs.org.
It seems the easiest way is to get nodejs binaries from http://node-js.prcn.co.cc/. It has the required dependencies like Cygwin, etc. Also you can run
npm using command:-
> shell.cmd > node npm install < package_name >
In the current verion (0.4.1)
npm may give DNS error. It is simple to fix. Just create
etc folder in the install folder and in
etc create a file
resolv.conf with the following contents.
nameserver 18.104.22.168 nameserver 22.214.171.124
If you’re having trouble trying to install NodeJS on windows I’ve posted a guide on how to install using Cygwin. Hope it helps! Installing NodeJS on Cygwin in Windows or on Ubuntu Server 10.04
It is now possible to install node without having Cygwin. It’s actually very simple to do. You can find the instructions here: https://github.com/joyent/node/wiki/Installation.
I did the manual installation (https://github.com/joyent/node/wiki/Installation#manual-install), and it was painless, and worked like a charm.
You can download and run directly from this link https://nodejs.org/download/
To check whether nodejs is installed or not , open command prompt and type
node -v, It will show nodejs version
Here are some instructions which we’ve found to work:
It uses some pre-built binaries which package NPM and Node.js together.
You can just download node.exe from http://node.js and then use node & npm from cmd.exe (search it on the menu)
$ node $ node file.js $ npm $ npm install