开发者

Installing NodeJS on windows machine?

How do I Install node.js on my wi开发者_JAVA百科ndows 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 8.8.8.8
nameserver 8.8.4.4


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:

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

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


  1. First, you can download NodeJS from: https://nodejs.org/en/download/

  2. Run the downloaded installer

  3. After installation completes, open a command prompt, and run the following command to ensure NodeJS is correctly installed.

    node --version
    


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

Installing NodeJS on windows machine?

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

Installing NodeJS on windows machine?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜