How do I fix 'EADDRINUSE: address already in use' when starting my Node.js server?
beginner
· 9 views ·
asked 3 days, 11 hours ago
by Tai
0
Context
Node.js/Express app started with npm run dev on port 3000. I previously stopped the server with Ctrl+C (or closed the terminal), then tried to start it again. On Windows 11, but I'd also like to know the macOS/Linux equivalent.
Expected
Running npm run dev should start the server and print 'Listening on port 3000'.
What Happened
The process crashes immediately with Error: listen EADDRINUSE: address already in use :::3000.
Question comments
Short clarifications and small follow-ups about the question itself.
No comments on the question yet.
0 Answers
No answers yet. Be the first to help!