[Solved] Error: listen EADDRINUSE: address already in use :::5000

Port occupied

Solution: check the process occupying the port in the terminal. PID: sudo lsof – I: 5000;

Re terminate the process: Kill – 9 {PID};

sudo lsof -i :5000;
// get the progress pid
kill -9 {pid};// Enter the obtained pid, such as 10086, without {}

Read More: