此版本的CLI仅与角版本兼容 ^13.0.0 || ^13.3.0-rc.0,[ng],但找到了Angular版本14.0.4
我确实将离子项目更新为Angular 14.
当我使用离子S
。 我想在我的Android设备上测试并运行Ionic Cordova运行Android
,但是得到以下错误,
[ng] This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
[ng] but Angular version 14.0.4 was found instead.
我该如何解决此错误?
另外
我正在使用:
- “@angular/*”:“ 14.0.4”
- “@ionic/angular”:“ 6.1.12”
- “@ionic/cli”:“ 6.20.1”
他们两个都应该接受Angular V14 ...
I did update my ionic project to Angular 14.
Tested all and everything was working when I used ionic s
.
I wanted to test on my android device and ran ionic cordova run android
but got the following error
[ng] This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
[ng] but Angular version 14.0.4 was found instead.
How can I fix this error?
Additional
I'm using :
- "@angular/*": "14.0.4"
- "@ionic/angular": "6.1.12"
- "@ionic/cli": "6.20.1"
Both of them should accept the angular v14...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了一个类似的主题,用于
Ionic Cordova运行ios
https://github.com/ionic-team/ionic-cli/issues/4876目前,唯一可用的修复程序是
“手动降级”直到
package.json
,离子信息
和ng版本
具有Angular 13.3.x.。I found here a similar topic for for
Ionic cordova run ios
https://github.com/ionic-team/ionic-cli/issues/4876For the moment, the only available fix is to
"downgrading "manually" until the
package.json
,ionic info
andng version
have angular 13.3.x."