title: PM2 not restarting npm script
body: <p>I start my app with the following command:</p>
  
  <p>pm2 start npm --name “my-site" -i 0 -- run runGlobalProduction</p>
  
  <p>But I'm finding that its intermittently crashing and not re-starting, even though when I ls the . processes, "my-site" shows as online. I have to reload my-site to get it to work.</p>
  
  <p>Checking the logs, I can see this error but its not very informative:</p>
  
  <blockquote>
    <p>npm ERR! This is probably not a problem with npm. There is likely
    additional logging output above. 0|my-sit | ERR! code ELIFECYCLE
    0|my-sit | npm ERR! errno 1 0|my-sit | npm ERR! my-website@3.2.4
    runGlobalProduction: export PORT=8080
    CONFIG_PATH=config/web/global-production.config.json&amp;&amp;npm run
    apiServer 0|lmy-sit | npm ERR! Exit status 1</p>
  </blockquote>