Is there a way for pm2 to run an npm start script or do you just have to run pm2 start app.js
pm2 start app.js
So in development
npm start
Now, You can use after:
pm2 start npm -- start
Follow by https://github.com/Unitech/pm2/issues/1317#issuecomment-220955319