当前位置:网站首页>The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then

The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then

2022-06-24 17:28:00 Dandelion

 Insert picture description here
to update node after , Run again angular Report this mistake
solve : This kind of reporting is wrong , yes angular-cli No configuration path route ( Actually, it was configured before , The upgrade node I don't know how to change the others path), stay This computer ( Right click properties )-> Advanced system setup -> environment variable -> User variables -> path edit -> hold ng.cmd Put the path of here

My path here has changed , This error is not reported until the previous path is gone
ng.cmd Path in npm Folder . my npm The download path is placed in the customized d pan , No screenshots here , default ng.cmd belong C:\Users\Lenovo\AppData\Roaming\npm in

Reference resources :https://www.cnblogs.com/MainActivity/p/10869748.html

原网站

版权声明
本文为[Dandelion]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211555195229.html