IONIC:实用程序 CLI 意外关闭 [英] IONIC : A utility CLI has unexpectedly closed
本文介绍了IONIC:实用程序 CLI 意外关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在运行 ionic serve 时遇到了这个错误Ionic CLI 将退出.请检查上面的任何输出以获取错误详细信息.
I got this error when i run ionic serve The Ionic CLI will exit. Please check any output above for error details.
我的离子信息
$ionic info
Ionic:
ionic (Ionic CLI) : 4.0.1 (C:UsersPcAppDataRoaming
pm
ode_modulesionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.8
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
System:
Android SDK Tools : 25.3.1
NodeJS : v6.10.1 (C:Program Files
odejs
ode.exe)
npm : 5.3.0
OS : Windows 10
Environment:
ANDROID_HOME : C:UsersPcAppDataLocalAndroidsdk
推荐答案
在 Ionic 项目的根目录下运行以下命令:
Run the below command, being in root directory of Ionic project:
npm install @ionic/app-scripts@latest --save-dev
那你可以试试 Ionic serve 或 Ionic s.
Then you can try Ionic serve or Ionic s.
这篇关于IONIC:实用程序 CLI 意外关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文