此版本的CLI仅与角版本兼容 ^13.0.0 || ^13.3.0-rc.0,[ng],但找到了Angular版本14.0.4

发布于 2025-02-12 18:36:31 字数 482 浏览 1 评论 0原文

我确实将离子项目更新为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霞映澄塘 2025-02-19 18:36:31

我在这里找到了一个类似的主题,用于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/4876

For the moment, the only available fix is to
"downgrading "manually" until the package.json, ionic info and ng version have angular 13.3.x."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文