问题
I am getting npm not recognized as internal or external command.
User variable Path is set to : %AppData%\npm;C:\Program_Files\nodejs\node_modules\npm;C:\Program_Files\nodejs;
I have tried with npm version 5.0 and 3.10.8 .
Error screenshot
回答1:
I solved by below steps:
1.run echo %comSpec% in command prompt or terminal
2.Check whether below entry exists
C:\WINDOWS\SysWOW64\cmd.exe
3.Then remove above entry from system environment variable.
来源:https://stackoverflow.com/questions/50253040/npm-not-recognized-as-internal-or-external-command