ionic-cli: All Ionic commands stops without error

Description:

All Ionic commands are stopping without errors ( ‘ionic serve’,‘ionic cordova platform…’, ‘ionic cordova run…’, etc.) Ionic serve: it does not open browser and stops after ‘lint finished’ ionic cordova platform add android: stops after Using cordova-fetch for cordova-android@7.0.0 (nothing in platform folder or package.json). But I can run cordova platform add android and it works.

It happens with all of my projects, even the projects that worked before.

I have tried to install other version of app-script. I have tried to uninstall node.js and reinstall it but no lucky.

Steps to Reproduce:

Output:

ionic cordova platform add android --verbose
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\agarciaiglesias\\Documents\\chronic_painn', local: false, binPath:
        'C:\\Users\\agarciaiglesias\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\Users\\agarciaiglesias\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] New daemon pid: 17580
> cordova platform add android --save
Using cordova-fetch for cordova-android@7.0.0

My ionic info:

ionic info

cli packages: (C:\Users\agarciaiglesias\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.11.1
    npm               : 5.6.0
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\agarciaiglesias\AppData\Local\Android\Sdk

Misc:

    backend : pro

Other Information:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 23 (7 by maintainers)

Most upvoted comments

What if --no-interactive flag is used in commands?

@agarciaiglesias @leolux Please understand I’m just guessing at what the problem might be. It’s difficult to debug something on a computer far away, and I still haven’t been able to reproduce this on my Windows machine. 😞