1

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

ng run app:ionic-cordova-serve --host=0.0.0.0 --port=8100 --cordova-mock [ng] 未知选项:'--cordova-mock'

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

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

有任何想法吗?我正在使用离子版本 4.10.3

4

2 回答 2

0

安装最新的@ionic/angular-toolkit

于 2019-03-06T04:10:37.463 回答
0

如果它不起作用,试试这个

npm install -g @angular/cli
于 2020-07-15T09:07:37.727 回答