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 version #5340

Open
brettz9 opened this issue Apr 4, 2022 · 0 comments
Open

pm2 version #5340

brettz9 opened this issue Apr 4, 2022 · 0 comments

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
  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
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