Reputation:
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
Upvotes: 12
Views: 9313
Reputation: 1
First of all check in your system node is install or not
If node is install then follow this steps.
on the project location hit these command
Step 1 =>mkdir node_project
(to create the folder node_project)
Step 2 =>npm init
(to create package.json)
Step 3 =>npm install express
(install node module)
Step 4 => touch index.js
(to create the js file. in this file you can create you own code)
Upvotes: 0
Reputation: 115
First, you can download NodeJS from: https://nodejs.org/en/download/
Run the downloaded installer
After installation completes, open a command prompt, and run the following command to ensure NodeJS is correctly installed.
node --version
Upvotes: 1
Reputation: 4254
Please find below steps for installation on the node.js and running as server
1) Download the suitable installation package for windows from following path https://nodejs.org/en/download/
2)Install the Package by Running the package file.
3)After installations click on Start>All Programs>Node.js>Node.js command prompt
4)In Node.js command prompt>Run following command "npm install -g http-server"
5)Now navigate to your project folder eg: d:>test> and run "http-server".you will be able to run project on your ip eg: http://XX.XX.XX.XX:8080
Upvotes: 0
Reputation: 51
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
Upvotes: 3
Reputation: 97
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
Upvotes: 1
Reputation: 14213
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.
Upvotes: 15
Reputation: 1692
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.
Upvotes: 3
Reputation: 131
They now have node.exe that you can download and run directly, no need for cygwin. See nodejs.org.
Upvotes: 13
Reputation: 48709
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.
Upvotes: 2
Reputation: 9578
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
Upvotes: 5
Reputation: 2260
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
Upvotes: 3