# Find the process ID using port 3000 lsof -i :3000 # Kill all Node.js processes (safer than just killing port 3000 in case of zombie processes) pkill -f node # Wait a moment for processes to clean up sleep 2 # Start the server again npm run build && npm start