The error EADDRINUSE means the port you're trying to use (in this case, 5000 or previously 3000) is still occupied by another process.
Linux: sudo lsof -i:5000 (This checks if port 5000 is being used by another process.)
To kill the process:
Windows: taskkill /PID /F (Replace with the process ID you found.)
Linux: sudo kill -9 (Replace with the process ID you found.)
Note: Only kill the process if it is a Node.js process. If it's another service, it's better to choose a different port.