To get the most out of PM2 and PM2.io, please make sure your PM2 version is up-to-date.
You can find the changelog here: https://github.com/Unitech/pm2/releases.
Updating PM2 is extremely fast (less than few seconds) and seamless.
First make sure that you saved correctly all your processes:
Then install the latest PM2 version from NPM:
npm install pm2 -g
And finally update the in-memory PM2 process:
That’s all, you now have a fresh and up-to-date PM2 system!
Updating Startup Script
When you upgrade your Node.js version, the node binary path will change. To update the PM2 startup script run:
$ pm2 unstartup $ pm2 startup