Node.js Error: listen EADDRINUSE: address already in use :::3000
An earlier Node/PM2 process is still bound to the target TCP port.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Node.js Error
Platform: Node.js
Common Root Causes:
- An earlier Node/PM2 process is still bound to the target TCP port.
Interactive Diagnostic Checklist
Verified Solutions:
- Stop the stale process or bind the new service to an unused loopback port.
Safe Diagnostic Command:
ss -tulpn | grep :3000 && pm2 list
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
An earlier Node/PM2 process is still bound to the target TCP port. Recommended diagnostic: `ss -tulpn | grep :3000 && pm2 list`. Remediation: Stop the stale process or bind the new service to an unused loopback port.
Worked Examples
- Run `ss -tulpn | grep :3000 && pm2 list` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-node-eaddrinuse-port-conflict · Independently verified: 2026-11-25