Open tlyim opened 6 years ago
I can confirm this.
Madoko does not work for node-9.0 and above.
Have you tried allowing node to bind to ports like 80 by running something like https://gist.github.com/firstdoit/6389682? If it's an EACCES it's probably a permission problem.
(And @daanx probably should pick a higher port for madoko-local instead…)
just fixed this problem on my laptop (running Windows 8) after
I suspect only 1 and 2a are essential. Maybe others with the same problem can try them first to see if they are the only critical to solving the problem.
Yeah, for a bind to be successful the port needs to be not used by anything else too.
Below is the error thrown when using Try it out - Test madoko-local in your browser (https://npm.runkit.com/madoko-local):
ErrorStack Trace Viewer Error: listen EACCES 127.0.0.1:80 at util._errnoException in core util.js — line 1024 at util._exceptionWithHostPort in core util.js — line 1046 at Server.setupListenHandle (as _listen2) in core net.js — line 1334 at listenInCluster in core net.js — line 1392 at GetAddrInfoReqWrap.doListen (as callback) in core net.js — line 1501 at GetAddrInfoReqWrap.onlookup (as oncomplete) in core dns.js — line 97
The errors cannot be fixed even after following fix suggestions like: https://stackoverflow.com/questions/38841204/events-js160-throw-er-unhandled-error-event https://piotrkrzyzek.com/solved-events-js160-throw-er-unhandled-error-event/