Node.js: Error: listen EADDRINUSE: address already in use :::3000
Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (node:net:1904:16)
Immediate Remediation
bash
# macOS & Linux: Find PID and terminate occupying process lsof -ti :3000 | xargs kill -9 # Windows PowerShell: Stop-Process -Id (Get-NetTCPConnection -LocalPort 3000).OwningProcess -Force
Root Cause Analysis
A previous development server, zombie child process, or orphaned background task is still bound to port 3000.
Verification & Guardrails
- If using Docker, check docker ps to ensure an existing container is not forwarding port 3000.
- You can also start your dev server on an alternate port: pnpm dev -p 3001.
Have a custom or uncategorized crash?
Run your trace through our in-memory client privacy sandbox for instant SRE remediation.