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


#1

$ ionic serve
Gulp startup tasks: [ ‘sass’, ‘watch’ ]
Running dev server: http://192.168.1.6:8100
Running live reload server: http://192.168.1.6:35729
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

events.js:72
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)


#2

Could you try to ionic setup sass ?


#3

Do you have a node server already running?


#4

Yes I have node js installed and running


#5

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


#6

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)