What is the `PM2` for command `yarn run start`?

The error you’re getting is because a bash script (yarn) is being executed with node…

Because pm2’s default interpreter is set to node.

To run yarn you’ll have to set the interpreter to bash:

shell:

Try the command below:

pm2 start yarn --interpreter bash --name api -- start

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)