Express is not an internal or external command for Windows solutions

Source: Internet
Author: User

1. First look at the directory where you installed your Express (Express is already installed and you want to use Express command in other directories)

See if there are express.cmd files in the parent directory of the current directory

Open command line view version

If the version before 4.x, such as 3.5, and so on, then directly in the system environment variable path, add the path of the Express.cmd file exists.

2. Do not know where your Nodejs global path is? Look at the global path in your system, with the following command:

NPM root-g3. How to set the global path window下:npm config set prefix C:\\Users\\pc\\global 4.如果安装的express是4.X就要安装 express-generator

Express is not an internal or external command for Windows solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.