安装指定版本Angular-CLI

卸载并安装指定版本Angular CLI

卸载之前的版本

npm uninstall -g @angular/cli

清除缓存,确保卸载干净

npm cache clean

检查是否卸载干净

输入ng version,若显示command not found则卸载干净

安装指定版本

npm install -g @angular/[email protected]

检查版本号

ng version

cli对应版本

猜你喜欢

转载自www.cnblogs.com/bh4lm/p/9083589.html