Error: listen EADDRINUSE: address already in use
Another process is already bound to the port your app is trying to listen on.
Common causes
- A previous run of the same app didn't shut down cleanly
- A different app is using the same default port
Diagnostic commands
bash
$ lsof -i :3000powershell
$ netstat -ano | findstr :3000Solutions
- Stop the process holding the port, or kill it by PID: `kill -9 <PID>` (macOS/Linux) or `taskkill /PID <PID> /F` (Windows)
- Or just run your app on a different port for this session