在重置 git head 一次提交并确认离子更新后,离子服务在“构建开发开始...”上退出,没有错误:/
我已尝试从项目端删除package.lock.json
和node_modules
文件夹再次安装npm update
- 问题未解决
然后我发现在另一个 ionic 项目上, ionic 也没有工作,同样的问题。
ionic serve
[WARN] No local CLI detected.
Starting with CLI 3.6, the CLI must be installed locally to use local CLI plugins.
? Install now? Yes
> npm install --save-dev --save-exact ionic@latest
✔ Running command - done!
[OK] Installed Ionic CLI locally!
Please re-run your command.
ctibor:client lucky$ ionic serve
? Local plugin @ionic/cli-plugin-cordova has an update available (1.4.1 => 1.6.2)! Would you like to install it? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
✔ Running command - done!
[OK] Updated @ionic/cli-plugin-cordova to 1.6.2!
? Local plugin @ionic/cli-plugin-ionic-angular has an update available (1.3.2 => 1.4.1)! Would you like to install it? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
[OK] Updated @ionic/cli-plugin-ionic-angular to 1.4.1!
> npm dedupe
✔ Running command - done!
离子服务
[INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address localhost - Ctrl+C
to cancel
[06:34:13] watch started ...
[06:34:13] build dev started ...
user:folder username$
离子信息
cli 包:(/Users/lucky/Documents/projects/bubuc/client/node_modules)
@ionic/cli-plugin-cordova : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
全局包:
Cordova CLI : 7.0.1
本地包:
@ionic/app-scripts : 1.3.7
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
系统:
Node : v6.9.5
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : 5.0.13
npm : 5.3.0