question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vitest --ui Error : listen EACCES: permission denied 127.0.0.1:51204

See original GitHub issue

Describe 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
dusionlikecommented, Jul 7, 2022
vitest --ui --api 9527
0reactions
Waxoussoucommented, Jul 7, 2022

oooh yeah ! it works for me !!! thanks so much @dusionlike

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found