title: How to Start PM2 Node JS with Babel and presets
body: <p>I'm having the following code in my package.json to start the script while developing:</p>
  
  <pre><code>....
      "scripts": {
          "start": "nodemon src/index.js --exec babel-node --presets es2015,stage-2"
        },
  ....
  </code></pre>
  
  <p>Now I want to deploy it to production. When I run <code>npm start</code> everything works fine. However, it will shut down when I close the terminal. So how can I use it with <strong>PM2</strong>?</p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>pm2 start src/index.js -x babel-node -p es2015,stage-2
  </code></pre>