Section 2.2 line 117: runServer() at port 8080 will throw an error on a Windows system.
Opened this issue · 1 comments
When executing node index.js
. the following error was thrown. When I change to port 80, it works.
node index.js
node:events:368
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied ::1:8080
at Server.setupListenHandle [as _listen2] (node:net:1313:21)
at listenInCluster (node:net:1378:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1516:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:74:8)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1357:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EACCES',
errno: -4092,
syscall: 'listen',
address: '::1',
port: 8080
}
This might be related to this https://superuser.com/questions/1437780/how-to-fix-listen-eacces-permission-denied-on-any-port