要更新Angular Cli global-
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
更新Angular Cli dev-
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install
在npm安装后修复审计问题:
npm audit fix
解决与“angular.json”相关的问题:
ng update @angular/cli --migrate-only --from=1.7.4