Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve In-memory PM2 is out-of-date

Amazon AWS Ubuntu server

~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial

Problem: PM2 is out-of-date

$ pm2 list

>>>> In-memory PM2 is out-of-date, do:
>>>> $ pm2 update
In memory PM2 version: 2.4.6
Local PM2 version: 3.0.3

Tried

pm2 update

... works until I reboot

Tried

npm remove pm2 -g
which pm2 
npm install pm2@latest -g
which pm2
sudo reboot

Any pointers?

like image 851
zabumba Avatar asked Aug 15 '18 14:08

zabumba


People also ask

What is node pm2?

PM2 is a Node. js process manager that comes with a built-in load balancer. It helps facilitate production deployments and enables you to keep running applications alive indefinitely (even when accidents occur).


1 Answers

I had the same problem and could solve it with re-creating the startup script. Try the following steps:

like image 76
Rafa2602 Avatar answered Sep 18 '22 13:09

Rafa2602