[英]npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
While installing Angular cli using the command: npm install -g @angular/cli I am getting this warning.使用以下命令安装 Angular cli 时:npm install -g @angular/cli 我收到此警告。 I am using node version 16.17.0 and npm version 8.19.2
我正在使用节点版本 16.17.0 和 npm 版本 8.19.2
I wanted to install angular cli.我想安装 angular cli。 But ng command not working
但是 ng 命令不起作用
Try the command 'ng v'
and check if it asks any question about sharing data about this project with the Angular Team at Google google or any question at all about google say N
as no.尝试命令
'ng v'
并检查它是否询问有关与 Google google 的 Angular 团队共享有关此项目的数据的任何问题,或者有关 google 的任何问题都说N
为否。 If it shows angular versions then it means angular/cli is installed如果它显示 angular versions 那么这意味着安装了 angular/cli
I had the same problem recently.我最近遇到了同样的问题。 I tried uninstalling angular and reinstalling it but there were already 'ng' files at the location:
我尝试卸载 angular 并重新安装它,但该位置已经有“ng”文件:
C:/Users/<your_user_name>/AppData/Roaming/npm
To resolve the issue, go to that npm folder and delete the following files:要解决此问题,请将 go 转到该 npm 文件夹并删除以下文件:
Once these files are removed, reinstall angular cli.删除这些文件后,重新安装 angular cli。 Follow the guide here to clear the cache and do a clean install: [https://www.javatpoint.com/uninstall-and-reinstall-angular-cli][1]
按照此处的指南清除缓存并进行全新安装:[https://www.javatpoint.com/uninstall-and-reinstall-angular-cli][1]
The ng command should work now. ng 命令现在应该可以工作了。 Check with the below command
使用以下命令检查
ng --version
References: [1]: https://www.javatpoint.com/uninstall-and-reinstall-angular-cli参考资料:[1]: https://www.javatpoint.com/uninstall-and-reinstall-angular-cli
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.