Error starting ionic serve command?


hi i am new to ionic just install node js and ionic .

after running following command

ionic start myAwesomeApp --v2

when i start > ionic serve it gives error

E:\ionicapps\myAwesomeApp>ionic serve

ionic-app-base@ ionic:serve E:\ionicapps\myAwesomeApp
ionic-app-scripts serve

[11:01:37] ionic-app-scripts 0.0.45
[11:01:37] watch started …
[11:01:37] build dev started …
[11:01:37] clean started …
[11:01:37] clean finished in less than 1 ms
[11:01:37] copy started …
[11:01:37] transpile started …
[11:01:39] transpile finished in 2.23 s
[11:01:39] webpack started …
[11:01:39] copy finished in 2.40 s
[11:01:43] webpack finished in 4.07 s
[11:01:43] sass started …

npm ERR! Windows_NT 6.1.7600
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “run” “ionic:serve” "–"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! ionic-app-base@ ionic:serve: ionic-app-scripts serve
npm ERR! Exit status 3221225501
npm ERR!
npm ERR! Failed at the ionic-app-base@ ionic:serve script ‘ionic-app-scripts ser
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-app-base packag
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-app-base
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls ionic-app-base
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\ionicapps\myAwesomeApp\npm-debug.log
There was an error serving your Ionic application: There was an error with the s
pawned command: serve



Not sure about the solution but you can try this.

  1. Delete Node_Modules folder.
  2. Run npm install again

Do same with the Platform if you are using android or ios platform to test.

If it doesn’t work then there might be a dependency related issue in your package.json file like including “angular/form” module in your dependencies.

I hope it works out for you.


I am also getting exactly the same issue while running IONIC SERVE command, deleted node_modules and ran NPM INSTALL multiple times, still getting the issue. is anyone else faced the same?


I got the same error, running npm install twice has resolved the issue, and could able to serve it. Thanks gaurav. I guess during the starting of my app some npm modules could not download completely, I observed from the output that, it has downloaded couple of modules each time i hit npm install.