Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 2.2 line 117: runServer() at port 8080 will throw an error on a Windows system. #1

Open
jiaoxlong opened this issue Jan 7, 2022 · 1 comment

Comments

@jiaoxlong
Copy link

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
}

@pheyvaer
Copy link
Contributor

pheyvaer commented Jan 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants