Failed to run Ionic server

Asked

Viewed 961 times

0

Good afternoon,

I’m trying to run Ionic right after creating the project without even touching anything and always comes the same flaw. I no longer know what to try.

When I run the command "Ionic serves" it brings me this message, not running the application.

ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"

This failure persists and I cannot perform. I am running Node 6.10 Cordova 6.5 and Ionic v2.

What can it be?

  • and what exactly is the flaw?

  • Ionic-app-scripts serve "-v2" "-address" "0.0.0.0" "-port" "8100" "-livereload-port" "35729"

  • Nothing else comes up... and I can’t access the app

  • I just realized, it wouldn’t just be ionic serve ?? In Ionic v1 and in documentation of v2 this is just so.

  • Guy sorry, I misspelled here on the question. It is yes Ionic serves. And using it that gives the error

  • Okay, but just tried ionic serve? Because besides the parameters are formatted wrong, these are the default values, but I think the problem is the wrong parameters.

  • I tried to force with some parameters, like "Ionic serves --lab" or "Ionic serves --127.0.0.1", but still it still presents this same problem

  • Does something have to be changed in the app confs?

  • I am performing a test. I am performing the same procedure in windows to see the problem will also happen or not. The problem happened in Debian 8 64.

  • again the syntax of the command is wrong, the right would be ionic serve --address 127.0.0.1

Show 5 more comments

1 answer

1


If you just created the project, probably it downloaded the Ionic-app-scripts version 1.2.2, this version is presenting this problem in many systems, I recommend you to rollback the version to 1.1.4 that is working correctly using the command: npm install @ionic/[email protected] --save-dev

Follow the Issue on Github about the problem 1.2.2 "Ionic serve" just hangs and not responding #858

Browser other questions tagged

You are not signed in. Login or sign up in order to post.