uninstall pm2 globally code example Example: uninstall pm2 pm2 kill npm remove pm2 -g #test with : which pm2