Vite
Vite dev server port already in use
Port 5173 is already in use
Vite cannot start its dev server because another process is already bound to the requested port.
Observed message
Port 5173 is already in use
Why it happens
- Another Vite or Node process is still running in the background.
- A different local tool is already listening on port 5173.
- The project hardcodes the port without fallback logic.
How to fix it
- Stop the existing process using the port with platform-appropriate tools.
- Restart the dev server after confirming the port is free.
- Change the Vite port in the config or run the dev server on an alternate port.