Reputation: 65
Hi I'm not able to use npm on Windows 8.1 64bit. It shows the error message as in image link. I have installed nodejs v5.7.1
ERROR MESSAGE: 'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules \npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external com mand, operable program or batch file. 3.6.0
Tried changing PATH variables and installing a fresh copy in a different drive also
Please help. Thanks
Upvotes: 5
Views: 6853
Reputation: 1
solution is very simple...open advance windows system settings next....edit environment variable..in that...open system variable..in that...change comSpec value o C:\Windows\system32\cmd.exe...then press OK
Upvotes: 0
Reputation: 31
First delete this two folders
C:\Users\<your user name>\AppData\Roaming\npm
C:\Users\<your user name>\AppData\Roaming\npm cache
Then delete the Comspec
system variable.
It works definitely on windows machine.
Upvotes: 1
Reputation: 11
Go to your environment variables and on the system variables section remove the ComSpec variable
Upvotes: 1
Reputation: 19428
Download Cygwin
Launch Cygwin Terminal as Administrator, then run the following command
curl -L "https://npmjs.org/install.sh" | sh
This will do a fresh install of NPM. It could take a while to download but once the install completed if everything was successful, the last thing printed will be It Worked
.
Upvotes: 2