DEV Community

mibii
mibii

Posted on

1

error when starting dev server

npm start

start

start
start
vite --open

error when starting dev server:
Error: listen EACCES: permission denied ::1:5173
at Server.setupListenHandle as _listen2
at listenInCluster (node:net:1920:12)
at GetAddrInfoReqWrap.doListen as callback
at GetAddrInfoReqWrap.onlookup as oncomplete

I have encountered the same problem and solved by the following methods.

  1. Open PowerShell as Admin.
  2. stop winnat with command: net stop winnat
  3. start winnat again with command: net start winnat

References: https://stackoverflow.com/questions/60485038/ng-server-listen-eacces-permission-denied-127-0-0-14200

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more