node port already in use code example
Example 1: EADDRINUSE: address already in use
sudo lsof -i :<PORT>
kill -9 <PID>
Example 2: npm port already in use
$ lsof -i tcp:3000
$ kill -9 PID
Example 3: EADDRINUSE: address already in use :::5000
kill -9 {PID}