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

nx dep-graph, listen EACCES: permission denied error #2033

Closed
jakobgn opened this issue Nov 7, 2019 · 2 comments
Closed

nx dep-graph, listen EACCES: permission denied error #2033

jakobgn opened this issue Nov 7, 2019 · 2 comments
Labels

Comments

@jakobgn
Copy link

jakobgn commented Nov 7, 2019

  • [x ] I am running the latest version
  • [x ] I checked the documentation and found no answer
  • [x ] I checked to make sure that this issue has not already been filed
  • [x ] I'm reporting the issue to the correct repository (not related to Angular, AngularCLI or any dependency)

Expected Behavior

After creating a clean workspace I should be able to run nx dep-graph without errors

Current Behavior

After creating a clean workspace (windows10 OS) I get an error

Failure Information (for bugs)

nx dep-graph

NX NOTE Dep graph started at http://localhost:4211

events.js:180
throw er; // Unhandled 'error' event
^

Error: listen EACCES: permission denied 127.0.0.1:4211
at Server.setupListenHandle [as _listen2] (net.js:1211:19)
at listenInCluster (net.js:1276:12)
at doListen (net.js:1415:7)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
Emitted 'error' event at:
at emitErrorNT (net.js:1255:8)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '127.0.0.1',
port: 4211
}

Solution

Increase port number to 5 digit in dep-graph.js ( nodejs/help#1159 (comment))

app.listen(42111, '127.0.0.1');
output_1.output.note({
    title: 'Dep graph started at http://localhost:42111'
});
opn('http://localhost:42111', {
    wait: false
});
@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label Dec 6, 2019
@rarmatei
Copy link
Collaborator

hi 👋 there hasn't been any activity on this for a while, and a lot of improvements have been made to Nx in the meantime - so I'll close it for now. Can you please update to the latest version of Nx and create a new issue if you're still experiencing this? Thanks!!

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants