Kill stuck process on port 3000 and restart Vite dev server
Session from pi-for-excel-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk
18ssession
0interventions
GOAL
Free up port 3000 that had stuck processes bound to it and restart the local dev server for the project.
- +0Prompt · +0Kill whatever's using port 3000 and restart dev locally
- +0mAgent did · +0mFound two PIDs bound to port 3000 (70573, 70629), killed them, and verified the port was free
- +0mAgent did · +0mCreated a start script and relaunched the dev server in the background with npm run dev, logging output to /tmp/excel-dev.log; Vite came up on port 3000
- +0mOutcome · +0mPort 3000 freed and Vite dev server restarted successfully at https://localhost:3000/
VERDICT
This was a quick fix — I'd just ask for the same thing again: kill whatever's on 3000 and restart dev. No corrections needed, it found the PIDs, killed them, verified the port was free, and got Vite running again in under 20 seconds.