I tried using this question's answer (Run a custom npm script with PM2), but it's not working for me. I have a folder called 'frontend' and I want to start the 'dev' script inside it, but it keeps starting the default 'start' script. Some of my tries:
- pm2 start frontend -- run dev --
- pm2 start frontend -- run dev
- pm2 start npm --name=frontend -- dev
- pm2 start npm --name=frontend -- run dev