vitest --ui Error : listen EACCES: permission denied 127.0.0.1:51204
See original GitHub issueDescribe the bug
Working on windows, npx vitest --ui does not work and throw an error on launch :
Error: listen EACCES: permission denied 127.0.0.1:51204
at Server.setupListenHandle [as _listen2] (node:net:1313:21)
at listenInCluster (node:net:1378:12)
at doListen (node:net:1516:7)
at processTicksAndRejections (node:internal/process/task_queues:84:21) {
code: 'EACCES',
errno: -4092,
syscall: 'listen',
address: '127.0.0.1',
port: 51204
}
Reproduction
"devDependencies": {
"@vitest/ui": "^0.14.2",
"typescript": "^4.5.4",
"vite": "^2.9.9",
"vitest": "^0.15.1"
}
System Info
System:
OS: Windows 10 10.0.19044
CPU: (8) ia32 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
Memory: 2.06 GB / 15.87 GB
Binaries:
Node: 16.14.0 - C:\Program Files (x86)\nodejs\node.EXE
Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.3.1 - C:\Program Files (x86)\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (102.0.1245.44)
Internet Explorer: 11.0.19041.1566
npmPackages:
vite: ^2.9.9 => 2.9.12
vitest: ^0.15.1 => 0.15.1
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Node.js EACCES error when listening on most ports
I am using Nodejs v14.17.5 I had been using ....listen(port, IP) and it was throwing errors listen EACCES: permission denied 127.0.
Read more >How to fix `listen EACCES: permission denied` on any port
In my case the error appears because the port used belong to reserved ports for Hyper-V. This port range changes when I restart...
Read more >How To Handle `Error: EACCES: permission denied`
The Solution. The best solution I have found to resolve this error is as follows: Open PowerShell as Admin and stop winnat with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
oooh yeah ! it works for me !!! thanks so much @dusionlike