Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 -v reports apparently old version #5341

Closed
brettz9 opened this issue Apr 4, 2022 · 1 comment
Closed

pm2 -v reports apparently old version #5341

brettz9 opened this issue Apr 4, 2022 · 1 comment

Comments

@brettz9
Copy link

brettz9 commented Apr 4, 2022

What's going wrong?

I seem to be getting the wrong pm2 version. (I want to make sure I am on the latest version which may apparently fix an ESM issue I'm having which looks like #4540 .)

Apologies if missing something obvious here.

How could we reproduce this issue?

This is how I reproduce, but I don't know if there is some environmental difference:

  1. npm install pm2@latest -g
  2. pm2 -v shows 2.10.2 while npmjs.com lists the latest as 5.2.0
  3. which pm2 shows /home/node/.nvm/versions/node/v14.17.1/bin/pm2

Supporting information

$ pm2 report
===============================================================================
--- PM2 REPORT (Mon Apr 04 2022 01:40:13 GMT+0000 (Coordinated Universal Time)) 
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 2.10.2
node version         : 14.17.1
node path            : /usr/bin/pm2
argv                 : /home/node/.nvm/versions/node/v14.17.1/bin/node,/usr/lib/node_modules/pm2/lib/Daemon.js
argv0                : node
user                 : node
uid                  : 1000
gid                  : 1000
uptime               : 4min
===============================================================================
--- CLI ----------------------------------------------------
local pm2            : 2.10.2
node version         : 14.17.1
node path            : /usr/bin/pm2
argv                 : /home/node/.nvm/versions/node/v14.17.1/bin/node,/usr/bin/pm2,report
argv0                : node
user                 : node
uid                  : 1000
gid                  : 1000
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : linux
type                 : Linux
cpus                 : AMD EPYC 7402P 24-Core Processor
cpus nb              : 1
freemem              : 149520384
totalmem             : 1304961024
home                 : /home/node
===============================================================================
--- PM2 list -----------------------------------------------
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘
 Use `pm2 show <id|name>` to get more details about an app
@brettz9
Copy link
Author

brettz9 commented Apr 4, 2022

Ok, I see I should have apparently run the deb instructions, being on Ubuntu.

apt update && apt install sudo curl && curl -sL https://raw.githubusercontent.com/Unitech/pm2/master/packager/setup.deb.sh | sudo -E bash -

...but it gives permission errors. I ran it with sudo for the apt update and apt install and that seemed to get it to work (after a restart).

Having another problem, but can look into that. Thanks!

@brettz9 brettz9 closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant