Watch: Fix "EADDRINUSE: address already in use" on port 3000 | Vovy

Watch Vovy do it on a Mac: "npm run dev says port 3000 is already in use, kill whatever's on it". Vovy finds the process hogging your port (EADDRINUSE), shows what it is, and stops it safely so npm run dev starts again.

"npm run dev says port 3000 is already in use, kill whatever's on it"

Vovy finds the process hogging your port (EADDRINUSE), shows what it is, and stops it safely so npm run dev starts again.

What happens in the video

  1. Read the error: Vovy reads the "EADDRINUSE: address already in use :::3000" message. A port is a numbered door your app listens on, and only one app can use each one.
  2. Find who is on the port: Vovy runs lsof -i :3000 to list the process, often an old dev server left running in a closed Terminal tab.
  3. Stop it safely: Vovy shows the process name first and only stops it if it is a leftover dev server, never a system app, then kills it by its ID.
  4. Restart your dev server: Vovy reruns npm run dev and waits for the Local: http://localhost line to appear.
  5. Open your app: Vovy opens localhost in your browser and shows a card with the command to do this yourself next time.
Read the step-by-step guide