安装指定版本Angular-CLI

卸载并安装指定版本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对应版本

posted on 2018-05-24 16:29  BH4LM  阅读(2491)  评论(0编辑  收藏  举报

导航