Kill the process that is using a port

Find out what is squatting on port 3000 and get rid of it.

SNP 019 #395 Filed cmd linux

Something is already listening on the port your dev server wants. Find it:

shell
sudo lsof -i :3000

Or with ss, which is installed everywhere these days:

shell
ss -tulpn | grep :3000

Both print the PID. Kill it politely first, then not so politely if it ignores you:

shell
kill 12345
kill -9 12345

If you don't care who it is, fuser does the lookup and the killing in one go:

shell
fuser -k 3000/tcp