When my VS code remote disconnects and looses my nodemon terminal after window reload, I always spend 3-4 minutes googling how to quickly kill the nodemonized process.
- Get pid by port (2355 in my case):
sudo lsof -n -i :2355
if you kill the found PID it won't help since nodemon will restart it. So, get PID from output (63073 in my case and..
- Now find the parent of this process (nodemon):