DEV Community

mibii
mibii

Posted on

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)