How to solve the problem of nodejs express installation failure

藏色散人
Release: 2023-01-11 09:21:29
Original
5430 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!