Error during ionic serve

Hi all,
I downloaded official conference app from git hub “

I installed using npm install but when I execute “ionic serve” I receive the following error:

C:\projects\mgdlab\ionic\poc\ionic3-sidemenu-tabs>ionic serve
> npm.cmd run ionic:serve -- --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[npm] > Ionic3-Sidemenu-Tabs@0.0.1 ionic:serve C:\projects\mgdlab\ionic\poc\ionic3-sidemenu-tabs
[npm] > npm run serve "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"
[npm] npm ERR! missing script: serve
[npm] npm ERR! A complete log of this run can be found in:
[npm] npm ERR!     C:\Users\l.santaniello\AppData\Roaming\npm-cache\_logs\2019-10-24T22_04_09_207Z-debug.log
[npm] npm ERR! code ELIFECYCLE
[npm] npm ERR! errno 1
[npm] npm ERR! Ionic3-Sidemenu-Tabs@0.0.1 ionic:serve: `npm run serve "--address" "localhost" "--port" "8100" "--livereload-port" "35729" "--dev-logger-port" "53703" "--nobrowser"`
[npm] npm ERR! Exit status 1
[npm] npm ERR!
[npm] npm ERR! Failed at the Ionic3-Sidemenu-Tabs@0.0.1 ionic:serve script.
[npm] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[npm] npm ERR! A complete log of this run can be found in:
[npm] npm ERR!     C:\Users\l.santaniello\AppData\Roaming\npm-cache\_logs\2019-10-24T22_04_09_226Z-debug.log

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

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

I have ionic v. 5.4.4

Could you please help me?

replace "ionic:serve": "npm run serve" in the package.json with "ionic:serve": "ionic-app-scripts serve" and try to run “ionic serve” again

1 Like

it works. thankyou very much.