ambitiousmind
ambitiousmind

Reputation: 15

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?

image of errors I receive

Upvotes: 0

Views: 552

Answers (1)

Amulya Kashyap
Amulya Kashyap

Reputation: 2373

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

Upvotes: 1

Related Questions