reload icon indicating copy to clipboard operation
reload copied to clipboard

Auto-increment the port if denied 8080

Open sdudnic opened this issue 5 years ago • 1 comments

I started this and fist start I had error

monitoring dir C:\peso\New folder
events.js:288
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES: permission denied 0.0.0.0:8080
    at Server.setupListenHandle [as _listen2] (net.js:1292:21)
    at listenInCluster (net.js:1357:12)
    at Server.listen (net.js:1445:7)

this is frustrating when you just install this package... Is there a possibility to auto-increment the port if the 8080 is denied?

i know now, after reading doc, that you can change the port, but this is ugly when the application throws errors in blank cases, something should be done about that

sdudnic avatar Apr 05 '20 11:04 sdudnic

Yeah that's a good idea, pull requests welcome.

alallier avatar Apr 06 '20 11:04 alallier