Transferred from: http://jingyan.baidu.com/article/456c463b60fb380a583144a9.html
Installing Nodejs and Frame Express under Windows
Nodejs since the birth has been hot, I recently installed a node environment to understand. The installation procedure is simple and simple, so we will not explain each step in detail here, only solve the problem during the installation.
Tools/Materials
Method/Step
Download the installation file from node website, address: http://nodejs.org/
This installer is also very regular, order click Next can be, or do some simple choice, needless to say, just a little more emphasis, one step: Add to Path must be selected. The function of this is simply to add a node-related command to the Windows command line, please Baidu for details.
We were very happy to have node installed, and then install Express,express is the only web framework that node officially recommends, providing a lot of basic convenience features.
Execute "npm install-g Express" on the command line waiting to download and complete the installation automatically. One way to test Express installation is to look at its version number and execute the command "express-v" to output the version number normally, but in the event of an abnormal condition, "Express is not an internal or external command " So the question comes, what's the reason?
There are two possibilities: ① installing node in the second step does not add an environment variable, which can be solved by adding the environment variable to node. ②express 4.x version of the command tool, you need to install a command tool, execute the command "npm install-g express-generator" After the completion of the test.
(go) Install Nodejs and Frame Express under Windows