alallier / reload

node module to reload your browser when your code changes
MIT License
296 stars 47 forks source link

Auto-increment the port if denied 8080 #239

Open sdudnic opened 4 years ago

sdudnic commented 4 years ago

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

alallier commented 4 years ago

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