I’m trying to run “ionic serve” in order to run my app in the browser. But, unfortunately, I got this error:
$ ionic serve
Running serve task...
Running dev server at http://0.0.0.0:8100
... Uhoh. Got error listen EADDRINUSE ...
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at Server.listen (/usr/local/lib/node_modules/ionic/node_modules/tiny-lr-fork/lib/server.js:138:15)
at Object.IonicServeTask._start (/usr/local/lib/node_modules/ionic/lib/ionic/serve.js:70:12)
at Object.IonicServeTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/serve.js:35:8)
at Object.Ionic.run (/usr/local/lib/node_modules/ionic/lib/ionic.js:192:13)
at Object.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:10:7)
at Module._compile (module.js:456:26)
The error message is a bit misleading. It doesn’t have to do with the address but the port. Specifically it could be either the web server 8100 or livereload 35729. For me it was live reload. Just launch ionic serve with custom ports.