npm install pm2 global code example Example 1: pm2 install $ pm2 ecosystem Example 2: pm2 install $ pm2 logs --lines 200