Express is not an internal or external command (Windows) solution

Source: Internet
Author: User

Please set environment variables

Note "D:\soft\nodejs\" This is the author himself installed in the node JS directory on the computer, please modify the


If the installed Express is 4. X will install express-generator otherwise the Express directory is not the bin file directory.

One of the main problems is that C:\USERS\XXXXX\APPDATA\ROAMING\NPM does not have express.sh or express.bat files, and if so, will C:\Users\xxxxx\AppData\Roaming\ NPM; Add to the environment variable to be able, notice to reopen the command window OH.



Reference:

First, the user environment variable parameters:

PATH =d:\soft\nodejs\;D: \soft\nodejs\node_modules\express; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;

Second, the system environment variable parameter

path=d:\soft\nodejs;d:\soft\nodejs\node_modules\express; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;

Node_path=d:\soft\nodejs\node_modules; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM;




Restart your computer when you have set it up. will be effective.

Related Article

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.