dashui-free-nextjs-admin-template icon indicating copy to clipboard operation
dashui-free-nextjs-admin-template copied to clipboard

error Failed to start server - Error: listen EACCES: permission denied 0.0.0.0:3001

Open eliassal opened this issue 6 months ago • 1 comments

Hi, when I run (in windows 10 box) npm run dev

I get

[email protected] dev next dev

  • error Failed to start server Error: listen EACCES: permission denied 0.0.0.0:3001 at Server.setupListenHandle [as _listen2] (node:net:1795:21) at listenInCluster (node:net:1860:12) at Server.listen (node:net:1948:7) at C:...\node_modules\next\dist\server\lib\start-server.js:153:16 at new Promise () at startServer (...\node_modules\next\dist\server\lib\start-server.js:134:11) at setupFork (.....\node_modules\next\dist\cli\next-dev.js:448:75) at runDevServer (...\node_modules\next\dist\cli\next-dev.js:457:23) at async nextDev (..\node_modules\next\dist\cli\next-dev.js:566:9) { code: 'EACCES', errno: -4092, syscall: 'listen', address: '0.0.0.0', port: 3001 }

I am not a node expert and not sure why it is trying to use port 3001 and 3000.

eliassal avatar Sep 26 '25 17:09 eliassal

I found the fix as it was an issue with winnat as indicated at https://stackoverflow.com/questions/62508193/error-listen-eacces-permission-denied-0-0-0-03001

eliassal avatar Sep 26 '25 17:09 eliassal