0

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?

image of errors I receive

mpen
  • 272,448
  • 266
  • 850
  • 1,236
ambitiousmind
  • 17
  • 1
  • 4

1 Answers1

1

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 :)

Amulya Kashyap
  • 2,333
  • 17
  • 25