Ionic serve command failed to run when running an existing ionic project


$ ionic serve
Gulp startup tasks: [ ‘sass’, ‘watch’ ]
Running dev server:
Running live reload server:
Watching : [ ‘www//*’, '!www/lib//*’ ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

throw er; // Unhandled ‘error’ event
Error: spawn ENOENT
at errnoException (child_process.js:1000:11)
at Process.ChildProcess._handle.onexit (child_process.js:791:34)


Could you try to ionic setup sass ?


Do you have a node server already running?


Yes I have node js installed and running


If you already have a server started using node, try shutting it down.


Steps that worked for me:

npm install -g gulp
npm install -g gulp-sass
npm install gulp-sass (in app directory)
npm gulp sass (in app directory)