2.安装参考:
https://www.cnblogs.com/mangwusuozhi/p/13398513.html
四、设置淘宝镜像
命令行语句如下:
npm config set registry https://registry.npm.taobao.org
查看是否替换成功用如下语句:
- npm config get registry
- npm info express
全局安装 Angular CLI
2、卸载并清空缓存
1. npm uninstall -g @angular/cli
2. npm cache clean --force
3、安装
# 安装最新版本
npm install -g @angular/cli@latest
# 安装指定版本号
npm install -g @angular/cli@9.0.7