且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法卸载angular-cli

更新时间:2022-12-07 18:58:26

如果您遇到angular/cli的问题,请使用以下命令:
npm uninstall -g angular-cli 卸载angular/cli.
npm cache clean 可以从用户名下的应用程序数据文件夹中清除npm缓存.
使用 npm cache verify 来验证您的缓存是否损坏.
使用 npm cache verify --force 从系统中清除整个缓存.

If you are facing issue with angular/cli then use the following commands:
npm uninstall -g angular-cli to uninstall the angular/cli.
npm cache clean to clean your npm cache from app data folder under your username.
use npm cache verify to verify your cache whether it is corrupted or not.
use npm cache verify --force to clean your entire cache from your system.

注意:
您还可以通过以下路径删除
C:\Users\"Your_syste_User_name"\AppData\Roaming\npm
C:\Users\"Your_syste_User_name"\AppData\Roaming\npm-cache
然后使用以下命令在系统中全局安装最新的angular/cli版本.
npm install -g @angular/cli@latest
要获取更多信息,请访问 github angular-cli更新.

Note:
You can also delete by the following the paths
C:\Users\"Your_syste_User_name"\AppData\Roaming\npm and
C:\Users\"Your_syste_User_name"\AppData\Roaming\npm-cache
Then use the following command to install latest angular/cli version globally in your system.
npm install -g @angular/cli@latest
To get more information visit github angular-cli update.