how to check whether pm2 installed or not code example Example: pm2 install $ npm install pm2@latest -g # or $ yarn global add pm2