pm2 not found when using pm2 in jenkins pipeline on linux machine
When I am using this in jenkins pipeline, all of the commands get successfully executed except the last one “pm2 start ./config.json”. the error is “bash: line 1: pm2: command not found”