运行 ng serve 报错如下
This version of CLI is only compatible with Angular versions ^9.0.0-beta || >=9.0.0 <10.0.0,
but Angular version 8.2.14 was found instead.
Please visit the link below to find instructions on how to update Angular.
https://angular-update-guide.firebaseapp.com/
- 只修改本项目 Update Angular Project
卸载当前angular/cli
npm uninstall @angular/cli --save-dev
安装对应版本的angular/cli
npm install @angular/cli@~8.2.0 --save-dev
- 更新全局
卸载当前angular/cli
npm uninstall @angular/cli -g
安装对应版本angular/cli
npm install @angular/cli@~8.2.0 -g