Home >Web Front-end >JS Tutorial >How to solve the problem of nodejs express installation failure

How to solve the problem of nodejs express installation failure

藏色散人
藏色散人Original
2021-09-20 14:29:315555browse

Solution to the failure of nodejs express installation: 1. Switch to the nodejs installation directory; 2. Execute the "npm install express" command.

How to solve the problem of nodejs express installation failure

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn