npm not recognized as internal or external command

社会主义新天地 提交于 2019-12-11 23:46:58

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!