question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All Ionic commands stops without error

See original GitHub issue

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:

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
imhoffdcommented, May 4, 2018

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. 😞

0reactions
NDMCreativecommented, Aug 13, 2018

Try

npm remove -g ionic cordova -f
npm -g cache clean -f
npm i -g update npm
npm i -g ionic cordova socks
npm remove cordova -f
npm i cordova

npm i -D -E @ionic/app-scripts

Make sure that the platforms and resources folder physically exist, if they do not make them

Then see what errors occur when running each of these one at a time

ionic doctor fix
ionic cordova resources android -f -i -s
ionic cordova prepare android --prod
ionic cordova build android --prod --release

As the --prod may show errors normally hidden

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic serve suddenly stopped working, attempts to update ...
Hey, everyone! I'm almost 3 months in with Ionic and I've ran into a problem that seemingly has no solution (I'm sure it...
Read more >
android - Cordova Ionic - App stopped unexpectedly - Stack Overflow
The problem occured after I updated my OSX to El capitan. Before updating the app would launch perfectly in the emulator. Now even...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >
Cordova Command-line-interface (CLI) Reference
These commands are supported when the current working directory is a valid Cordova project. Command, Description. info, Generate project information.
Read more >
Advanced Python Debugging with pdb | Codementor
From here, you can run Python code and debugger commands at the prompt to ... without having to manually step through every iteration....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found