Reputation: 1
I have just installed node and npm, and when i do npm - v, i get the following message : 'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules \npm\bin\npm-cli.js" prefix -g' is not recognised as an internal order or external, an executable program or a command file.
6.14.6
I have tried to change my PATH, and reinstalling, but there is still the same message.
Upvotes: 0
Views: 2027
Reputation: 11
So the trick was that you have to delete the system variable "ComSpec" with the value of "%SystemRoot%\system32\cmd.exe" After doing this you add a new system variable with the name "ComSpec" and a value set to "%SystemRoot%\system32\cmd.exe" As stupid as this sounds it will resolve this idiotic issue windows 10 is causing itself. It's almost as if you're telling windows 10 "Hey I know you're confused but here is the right path..."
Upvotes: 1