I want to keep my node server alive. Therefore I use pm2 but if I try to start my server with
pm2 start index.js
I get the message:
pm2: command not found
So, I wanted to ask how to use local pm2 in node_modules
directory without installing pm2 globally.
Do I have to register pm2 in my index.js
?
Can anyone provide some information about the command to start a server via pm2 which is locally installed?