Note: On-line search, stay record. Original website: http://www.cnblogs.com/pigtail/archive/2013/01/08/2850486.html
Http://jingyan.baidu.com/article/922554468a3466851648f419.html
First step: Download the installation file
: Official website http://www.nodejs.org/download/
Step Two: Install the relevant environment
Install the downloaded file
Open the C:\Program Files\nodejs directory you'll find it comes with NPM, which is installed directly with NPM
Entering the node. js Command Prompt Commands window
Enter the Nodejs installation directory C:\Program Files\nodejs
Input command: CD C:\Program Files\nodejs
Installing ESPRESS:NPM Install EXPRESS-GD (g for Global, D is dependent library)
Step three: Install the command tool
The command tool was split up in the latest version of express4.0 (Project address: https://github.com/expressjs/generator), so we also need to install a command tool with the following command:
NPM install-g Express-generator
Fourth step: Create a project
Create a project using Express:
Express HelloWorld
There have been some changes in the command in the new version, and after creating project, you need to add dependencies and launches with NPM:
CD HelloWorld
NPM Install
NPM start
Then the newly created HelloWorld is already running on Port 3000.
Visit Http://localhost:3000/and see the familiar pages.
Windows installation Nodejs