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?
Asked
Active
Viewed 535 times
0
-
run `npm -v` what is the output? – Yerken Feb 05 '16 at 04:03
-
This is the result of running npm - v http://ambitiousbranding.com/error2.jpg – ambitiousmind Feb 05 '16 at 04:07
-
your `npm` binary is not in the path. – Yerken Feb 05 '16 at 04:25
-
how did you install `node` ? – Yerken Feb 05 '16 at 04:26
-
I went to the website and downloaded the package. Am I in the right folder ? – ambitiousmind Feb 05 '16 at 04:29
-
http://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8 try this – Yerken Feb 05 '16 at 04:31
-
OK Thanks for the link – ambitiousmind Feb 05 '16 at 04:34
1 Answers
1
Though Your Problem seems to your system's error because as your screen shot shows : I've observed following:
- You've Altered Your NodeJs Installation Directory(knowingly / Unknowingly)
- Packages are stored here : "C:\Users\YOUR_AC_NAME\AppData\Roaming\npm"
Remedies :
- First Uninstall Node.js Completely From System
- Delete Residue Folders left behind
- Install a Fresh copy of Node.js
Add Path to Environment + System Variable as Following :
C:\Program Files\nodejs
C:\Users\YOUR_AC_NAME\AppData\Roaming\npm
After That Install Express Generator Globally
Hope It Helps :)

Amulya Kashyap
- 2,333
- 17
- 25