Angular升级流程

执行命令

ng update @angular/cli --migrate-only --from=1.7.1
npm install --save-dev @angular/cli@latest

注意from=1.7.1,填写自己的原version
然后可能因为包的原因会有一些报错,根据报错内容,谷歌解决即可

参考资料

Error: Local workspace file ('angular.json') could not be found

原文地址:https://www.cnblogs.com/Lulus/p/9497865.html