简体   繁体   中英

Installing express generator error

Everytime I try to run the command npm install -g express-generator I receive the following errors. Do you have a solution to this problem?

我收到的错误图片

Though Your Problem seems to your system's error because as your screen shot shows : I've observed following:

  1. You've Altered Your NodeJs Installation Directory(knowingly / Unknowingly)
  2. Packages are stored here : "C:\\Users\\YOUR_AC_NAME\\AppData\\Roaming\\npm"

Remedies :

  1. First Uninstall Node.js Completely From System
  2. Delete Residue Folders left behind
  3. Install a Fresh copy of Node.js
  4. Add Path to Environment + System Variable as Following :

    C:\\Program Files\\nodejs

    C:\\Users\\YOUR_AC_NAME\\AppData\\Roaming\\npm

  5. After That Install Express Generator Globally

Hope It Helps :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM