The rolling back action issue occurs in Node. js msi versions. Google, see the following link:
Http://cnodejs.org/topic/51428aa3069911196d65935c
It is basically clear where the problem is. Manually perform the operation. The configuration is successful. 1:
Figure 1
Here we will write a configuration step for your reference:
Step 1: Download node.exe,npm.zip
Node.exe link: http://nodejs.org/download/
Npm link: https://npmjs.org/
Step 2: manually create the installation directory. In this article, create D: \ Node
Copy node.exe to D: \ Node
Decompress npm and copy it to D: \ Node.
Set the environment variable and add the node PATH to the PATH. In this article, D: \ Node
Step 3: Install npm
Run cmd to enter the command line and enter the command node cli. js install-gf.
Set the environment variable and add NODE_PATH = D: \ Node \ node_modules
2:
Figure 2
Step 4: Install express
In the Node directory, enter the command npm install express [install express to the relative path] Or npm install express-g [install express to the absolute path], 3
Figure 3
3. The entire Node. js configuration is complete.
You can enter the command express <Project Name> in CMD to create a project, enter node app. js to enable port 3000 listening, and enter localhost:, 4, and figure 1 in the browser. The project is successfully deployed:
Figure 4
Node. js is configured in Win8.
When reprinting, please indicate the source of this article: www.cnblogs.com/tmywu
Author: old fish 678
Mail: tommywu23@126.com