1: Download node. js and install it, install it from NPM, choose to install it together.
2:node-v display version, npm-v display version.
3: I am here to agent to the Internet, first set up NPM agent, if the Internet does not need a proxy, you can skip this step.
NPM Config set proxy http://proxy3.bj.petrochina:8080
NPM Config set Https-proxy http://proxy3.bj.petrochina:8080
4: Install the Global Express.
5: View version: Express–v
6: Now that the installation environment is installed, start creating the site. Create the directory first, then express Rc_web
The resulting site structure is as follows:
7: Install dependency, and finally generate the Node_modules directory under the current directory.
8: Start Web site (debug mode)
9: In the browser type: "http://localhost:3000" can see the site started. You can also see the debug information.
node. JS Express Getting Started Example 1