Pm2 next /usr/bin/yarn: line 3: /bin: Is a directory Code Example
pm2 next /usr/bin/yarn: line 3: /bin: Is a directory
# --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