卸载并安装指定版本Angular CLI
卸载之前的版本
npm uninstall -g @angular/cli
清除缓存,确保卸载干净
npm cache clean
检查是否卸载干净
输入ng version
,若显示command not found则卸载干净
安装指定版本
npm install -g @angular/cli@1.6.3
检查版本号
ng version
cli对应版本
![](https://images2018.cnblogs.com/blog/259494/201805/259494-20180522144251720-383079740.png)
![](https://images2018.cnblogs.com/blog/259494/201805/259494-20180524162722656-2033874396.png)
npm uninstall -g @angular/cli
npm cache clean
输入ng version
,若显示command not found则卸载干净
npm install -g @angular/cli@1.6.3
ng version
转载于:https://www.cnblogs.com/bh4lm/p/9083589.html