离子发球突然中止

Posted

技术标签:

【中文标题】离子发球突然中止【英文标题】:Ionic serve suddenly aborting 【发布时间】:2018-04-11 11:31:23 【问题描述】:

尝试运行ionic serve 时,启动Webpack 后执行突然中止。有人知道发生了什么吗?

michaels-macbook-pro:ionic-app michael$ ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 - Ctrl+C to cancel
[13:56:46]  watch started ... 
[13:56:46]  build dev started ... 
[13:56:46]  clean started ... 
[13:56:46]  clean finished in 1 ms 
[13:56:46]  copy started ... 
[13:56:46]  deeplinks started ... 
[13:56:46]  deeplinks finished in 67 ms 
[13:56:46]  transpile started ... 
[13:56:51]  transpile finished in 5.18 s 
[13:56:51]  preprocess started ... 
[13:56:51]  preprocess finished in 1 ms 
[13:56:51]  webpack started ... 
[13:56:51]  copy finished in 5.53 s 

michaels-macbook-pro:ionic-app michael$ 

离子信息

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

全局包:

cordova (Cordova CLI) : 7.1.0 

本地包:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : browser 5.0.1 ios 4.5.2
Ionic Framework    : ionic-angular 3.8.0

系统:

ios-deploy : 1.9.2 
Node       : v8.6.0
npm        : 5.3.0 
OS         : macOS High Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004 

环境变量:

android_HOME : not set

杂项:

backend : pro

离子服务-详细

[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags:  interactive: true, confirm: false 
[DEBUG]  cwd: '/Users/michael/IdeaProjects/dercampus/app', local: false, binPath: '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: '/usr/local/lib/node_modules/ionic/dist/index.js' 
[DEBUG] Daemon found (pid: 777)

【问题讨论】:

ionic info ....? @Sampath 已更新 能不能完全关闭VS代码重新启动? @Sampath 这是什么意思? 也许您有超过 1 个实时服务器正在运行。所以把他们都杀了,然后重新开始。 【参考方案1】:

错误:

不使用本地 CLI 的原因:LOCAL_CLI_NOT_FOUND

解决方案:

npm install --save-dev --save-exact ionic@latest

【讨论】:

试试npm cache verify

以上是关于离子发球突然中止的主要内容,如果未能解决你的问题,请参考以下文章

Ionic 2 SplitPane更改sass变量无法正常工作

排球计分规则

离子 - 错误:未捕获(承诺):找不到removeView

序列生成器中止时的行为如何?

乒乓球与羽毛球不同发球规则下选手的胜率——概率论+程序分析

排球比赛规则