Hi, after updating to rc3 and starting a new project I got an error:
ionic-app-scripts serve
[20:05:16] ionic-app-scripts 0.0.45
[20:05:17] watch started …
[20:05:17] build dev started …
[20:05:17] clean started …
[20:05:17] clean finished in 10 ms
[20:05:17] copy started …
[20:05:17] transpile started …
events.js:160
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE 0.0.0.0:53703
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at Server._listen2 (net.js:1257:14)
at listen (net.js:1293:10)
at net.js:1403:9
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
I have tried to reinstall ionic CLI and all dependencies - no result.
Any tips?
Did you update everything like described in the blog post? Seems that you didn’t upgraded app-script at least (your version 0.0.45, last version 0.0.46)
Yes, now I have the latest script 0.0.46, no changes:
[20:22:36] ionic-app-scripts 0.0.46
[20:22:36] watch started ...
[20:22:36] build dev started ...
[20:22:36] clean started ...
[20:22:36] clean finished in 1 ms
[20:22:36] copy started ...
[20:22:36] transpile started ...
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:53703
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at Server._listen2 (net.js:1257:14)
at listen (net.js:1293:10)
at net.js:1403:9
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
I did, than cleared cache, uninstalled ionic cli - no changes. The same problem occurs with a new project and with all my old, I think it should be something with the new ionic cli version. I wonder if there is a way to install an old cli version now?
Hah, thanks but I just found an alternative solution! Installing Nodejs 7.1.0 worked although at first it threw a node-sass error (unsupported environment) but “npm rebuild node-sass” fixed that. Serve now works perfectly.
Check whether any other Terminal is running other Applications on the same port. This happens when multiple applications trying to access the same port, Its always FIFO.