Home » Nodejs » Installing NodeJS on windows machine?

Installing NodeJS on windows machine?

Posted by: admin November 30, 2017 Leave a comment

Questions:

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

Answers:

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.

Questions:
Answers:

They now have node.exe that you can download and run directly, no need for cygwin. See nodejs.org.

Questions:
Answers:

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 8.8.8.8
nameserver 8.8.4.4

Questions:
Answers:

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

Questions:
Answers:

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.

Questions:
Answers:

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

Questions:
Answers:

Here are some instructions which we’ve found to work:

https://github.com/balupton/node/wiki/Installing-Node.js

It uses some pre-built binaries which package NPM and Node.js together.

Questions:
Answers:

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