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