angular-cli的卸载与安装指定版本

之前安装了最新的版本,与团队内其他人的版本不一致,因此需要卸载并重新安装。

  • 卸载

npm uninstall -g angular-cli

npm cache verify --force

  • 清理残留文件

路径  C:\Users\佳佳97\AppData\Roaming\npm

  • 重新安装指定版本

npm install @angular/[email protected] -g

  • 安装完成查看

ng -v

猜你喜欢

转载自blog.csdn.net/keeprunning95/article/details/81170981