在 Ionic 版本 4.10.3 上使用 Ionic Devapp 时出错

Error using Ionic Devapp on Ionic version 4.10.3

我正在尝试在 android 上使用 devapp 应用程序,但出现错误

ng run app:ionic-cordova-serve --host=0.0.0.0 --port=8100 --cordova-mock [ng] Unknown option: '--cordova-mock'

[错误] ng 意外关闭(退出代码 1)。

    The Ionic CLI will exit. Please check any output above for error details.

有什么想法吗?我正在使用离子版本 4.10.3

从孩子@ionic/angular-toolkit

安装

如果不行就试试这个

npm install -g @angular/cli