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
pm2 start npm --name "custom_pm2_name" -- run prod
"scripts": { "prod": "nodemon --exec babel-node ./src/index.js" }
This worked for me when the others didnt