pm2 simple script code example Example: pm2 install $ npm install pm2@latest -g # or $ yarn global add pm2