[英]npm' is not recognized as an internal or external command, operable program or batch file in visual studio
Aside from the solutions suggested in the links which are posted in the comments, you can also try the below command to update the PATH,除了评论中发布的链接中建议的解决方案外,您还可以尝试使用以下命令来更新 PATH,
set PATH=%PATH%;C:\Users\YOUR_USER_NAME_OR_LOGIN\AppData\Roaming\npm;
Once executed, try re-running your ng serve
command again.执行后,再次尝试重新运行ng serve
命令。
Hope this helps!希望这可以帮助!
Install Angular cli globally using this command.使用此命令全局安装 Angular cli。
$ npm install -g @angular/cli
the -g
switch installs angular cli(or any npm package globally on your system). -g
开关会在您的系统上全局安装 angular cli(或任何 npm 包)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.