Home >Web Front-end >JS Tutorial >How to solve the problem of nodejs express installation failure
Solution to the failure of nodejs express installation: 1. Switch to the nodejs installation directory; 2. Execute the "npm install express" command.
The operating environment of this article: windows7 system, nodejs version 10.16.2, Dell G3 computer.
How to solve the problem of nodejs express installation failure?
Record the reason why nodejs express installation failed
Problem:
In the window command line, after executing npm install -g express, the express command cannot be executed on the command line.
Answer:
4.x version of the EXPRESS controller: npm install -g express-generator
3.x version of the EXPRESS controller: npm install -g express
Correct answer:
Switch to the nodejs installation directory—》npm install express
Recommended learning:《javascript basic tutorial》
The above is the detailed content of How to solve the problem of nodejs express installation failure. For more information, please follow other related articles on the PHP Chinese website!