I don’t know how it happened, but “ionic serve” stopped working for me suddenly. It keeps hanging on:
[telmo@Telmo-PC ionicApp]$ ionic serve
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
> ionic-hello-world@ ionic:serve /home/telmo/Documents/ionicApp
> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
I’ve waited quite a few minutes and still nothing, already tried rebooting, reinstalling ionic with “sudo npm install -g cordova ionic”, running the command on new projects, no success.
My “ionic info” is as follows:
[telmo@Telmo-PC ~]$ ionic info
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Your system information:
Cordova CLI: You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.10
Node Version: v7.7.3
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Does anyone have any suggestion? Thanks in advance.
Edit: I also noticed this only happens with Ionic 2 projects (with --v2), Ionic 1 projects work just fine.
FYI I noticed this happens when using ionic app scripts 1.1.4.
if I downgrade ionic app scripts to 1.0.0 ionic serve works fine but I think that may have caused me an issue deploying to the device but I can’t remember properly sorry.