yarn global add pm2
npm install pm2 -g
With debian, use the install script:
apt update && apt install sudo curl && curl -sL https://raw.githubusercontent.com/Unitech/pm2/master/packager/setup.deb.sh | sudo -E bash -
With docker, follow this tutorial.
By default, CLI autocompletion is not installed with PM2, we recommend it:
pm2 completion install
Source map support
Source map files are autodetected by default if they are present (
Keep your pm2 up to date with:
npm install pm2 -g && pm2 update
pm2 update is necessary in order to refresh the PM2 daemon.