我有angular cli版本6.2.3,对于节点js我有版本12.6.0
Angular CLI: 6.2.3
Node: 12.6.0
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect <error>
@angular-devkit/core <error>
@angular-devkit/schematics <error>
@schematics/angular <error>
@schematics/update <error>
rxjs <error>
我想升级到angular 8,我遵循以下命令,但保留了某些版本
npm卸载-g angular-cli
npm缓存验证
npm缓存清理
npm install -g @ angular / cli @ latest
答案 0 :(得分:0)
对于Mac或Ubuntu
sudo npm uninstall -g angular-cli
对于Windows在Administrator上打开Powershell
npm uninstall -g angular-cli Mode
sudo npm cache verify
sudo npm cache clean
sudo npm install -g @angular/cli@latest