I have downloaded node as well as npm , and it is well installed in the system , but npm is still not working

46 Views Asked by At

'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. 10.2.4

This is what cmd is showing when i do npm -v, please can anybody help me , i have been not able to solve this issue a thousand times even after reinstalling and setting variables again and again

'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. 10.2.4

1

There are 1 best solutions below

1
Amulya Machhan On

It was an issue related to ComSpec where it had been set for javajdk and not for cmd.exe , so I formatted the ComSpec variable and now npm is working fine.