# --interpreter bash is your problem. yarn is not a bash script, # rather what appears to be a JS program. Do this: pm2 start yarn --name appname -- start:next