I have a NodeJS server on a virtual machine. I connect to the machine through SSH and leave the server running with:
npm start &
If I disconnect with
Ctl-D, the server keeps running. If my internet drops and the connection fails, the server also stops. Why does this happen, and how can I leave the server running without it dropping because of the internet disconnection?