[ng] This version of CLI is only compatible with Angular versions ^10.0.0-beta || >=10.0.0 <11.0.0, [ng] but Angular version 8.1.3 was found instead. [ng] Please visit the link below to ......


报错:

[ng] This version of CLI is only compatible with Angular versions ^10.0.0-beta || >=10.0.0 <11.0.0, 

[ng] but Angular version 8.1.3 was found instead.
[ng] Please visit the link below to find instructions on how to update Angular.
[ng] https://angular-update-guide.firebaseapp.com/

[ERROR] ng has unexpectedly closed (exit code 3).

解决办法:

首先ng -v查看一下angular-cli脚手架的版本

 

 我的显示版本为10.1.6,其它的显示8.1.3,版本不兼容,需要安装一下对应的版本

具体步骤:

1.卸载当前的angular/cli

npm uninstall @angular/cli --save-dev

2.安装对应版本的angular/cli  在这里我需要安装8.1.3的

npm install @angular/cli@~8.1.3 --save-dev


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM