1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Ionic 4 - Getting [ERROR] ng has unexpectedly closed (exit code 1) when I run "ionic server"

Discussão em 'Angular' iniciado por David Rocha, Junho 23, 2025.

  1. David Rocha

    David Rocha Guest

    I am struggling in this error when I try the first run on an Ionic4 project.


    ng run app:serve --host=0.0.0.0 --port=8100

    [ERROR] ng has unexpectedly closed (exit code 1).

    The Ionic CLI will exit. Please check any output above for error details.​

    I'm using Linux Elementary OS (a nice distro that came from Ubuntu).

    I tried to run a ionic3 project and it ran successfully.

    When I run ionic serve --verbose I get this message

    [​IMG]

    I already tried many things, "npm cache clean", reinstall node, reinstall ionic, start/stop nodejs process. But without any success. As I am not finding anyone with the exactly same problem as mine I am asking you guys.

    Continue reading...

Compartilhe esta Página