执行命令

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

相关文章:

  • 2022-01-30
  • 2021-08-21
  • 2022-12-23
  • 2021-04-16
  • 2021-09-02
  • 2021-11-02
  • 2021-11-12
  • 2021-10-11
猜你喜欢
  • 2021-06-26
  • 2021-06-09
  • 2022-12-23
  • 2021-08-16
  • 2021-07-12
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案