Ionic 3 ionic serve command terminate itself

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

 

I'm having an error with the ionic serve command.I can serve application via npm run ionic:serve.I searched things about this and also adding output of ionic serve --verbose.Please help to get out from this.

ionic info output is this:

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

        @ionic/cli-utils  : 1.19.1
        ionic (Ionic CLI) : 3.19.1

    global packages:

        cordova (Cordova CLI) : 8.0.0

    local packages:

        @ionic/app-scripts : 3.1.8
        Cordova Platforms  : windows broken
        Ionic Framework    : ionic-angular 3.9.2

    System:

        Node : v8.4.0
        npm  : 5.3.0
        OS   : Windows 8.1

    Environment Variables:

        ANDROID_HOME : C:\Users\DELL\AppData\Local\Android\sdk;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

ionic serve --verbose output is this:

[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\DELL\\garageApp', local: false, binPath:
        'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Daemon found (pid: 3040)
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[16:53:29]  watch started ...
[16:53:29]  build dev started ...
[16:53:29]  clean started ...
[16:53:29]  clean finished in 88 ms
[16:53:29]  copy started ...
[16:53:30]  deeplinks started ...
[16:53:30]  deeplinks finished in 252 ms
[16:53:30]  transpile started ...
[16:53:47]  transpile finished in 17.42 s
[16:53:47]  preprocess started ...
[16:53:47]  preprocess finished in 5 ms
[16:53:47]  webpack started ...
[16:53:48]  copy finished in 18.51 s
[16:54:15]  webpack finished in 27.23 s
[16:54:15]  sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[16:54:20]  sass finished in 5.78 s
[16:54:20]  postprocess started ...
[16:54:21]  postprocess finished in 73 ms
[16:54:21]  lint started ...
[16:54:21]  build dev finished in 51.56 s
[16:54:22]  watch ready in 52.37 s
[16:54:22]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.1.14:8100
     DevApp: garageApp@8100 on admin


E:\garage-frontend>
0 views
0 shares

profilepic.png
manpreet 2 years ago

May be it will works.. Try below steps

npm install -g ionic@latest

npm install @ionic/app-scripts@latest --save-dev

npm install ionic-angular@latest --save

ionic serve

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum