如何将angular cli 6升级到angular cli 8

时间:2019-09-11 12:02:02

标签: angular-cli

我有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

1 个答案:

答案 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