0

I have installed NODEJS succesfully. But when I check for the versions, node version is showing correctly.But when I check for npm version,I get the following error along with the version.

'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 command,
operable program or batch file.
5.3.0

I am unable to understand what went wrong during the installation.

Please help!

Thanks in advance!

Sai Raman Kilambi
  • 878
  • 2
  • 12
  • 29

2 Answers2

0

I guess you try to run npm -g -v and receive this error. This is normal behavior on Windows OS. You should have error on npm -g install yo or npm -g ls.

galkin
  • 5,264
  • 3
  • 34
  • 51
0

Check the system configuration in System- Follow this configuration this is work for me

System-Edit Enviroment variables-
ComSpec C:\WINDOWS\system32\cmd.exe

Tyler2P
  • 2,324
  • 26
  • 22
  • 31