Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't update(uninstall/install) pm2 version 0.7.8

Tags:

node.js

pm2

Im stuck with upgrade pm2 to latest version from 0.7.8 to 1.1.3

Official documentation says that it simply done with npm install pm2 -g and pm2 update but actually my current version of pm2(0.7.8) don't have update command it is new feature

i also tried to uninstall/install option by this tutorial but it didn't not removing anything and i don't want to manually remove some /usr/ or /lib folders to not harm something as suggesting in that article last comment

So my question: is there present some normal way to remove pm2(version 0.7.8) ? some native way

i also not able to find old documentation for pm2 to find there remove or upgrade steps ...

like image 373
Armen Avatar asked May 30 '26 22:05

Armen


1 Answers

After long research i did not find any better way then delete files manually and install it as has been suggested here

My runned commands:

# Remove part
rm /usr/bin/pm2
rm -r /usr/local/lib/node_modules
rm -r /root/.pm2/
# Server reboot
reboot
# Install
npm install pm2 -g

after this i have now pm2 at 1.1.3 version and all works well

like image 176
Armen Avatar answered Jun 02 '26 10:06

Armen