-
Notifications
You must be signed in to change notification settings - Fork 2.7k
pm2 install gives WARN deprecated [email protected]: Please upgrade to version 7 or higher. #5134
Copy link
Copy link
Closed
Description
What's going wrong?
root@myhost:~# npm install pm2 -g
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
added 180 packages, and audited 181 packages in 6s
10 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
root@myhost:~# npm -v
7.20.2
root@myhost:~# node -v
v12.22.2
How could we reproduce this issue?
On new Ubuntu 20 linux install:
- Install Node 12
- Upgrade npm using
npm install -g npm
- Install pm2 using
npm install pm2 -g
Supporting information
$ pm2 report
--- PM2 report ----------------------------------------------------------------
Date : Thu Jul 29 2021 07:15:33 GMT+0000 (Coordinated Universal Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version : 5.1.0
node version : 12.22.2
node path : /usr/bin/pm2
argv : /usr/bin/node,/usr/lib/node_modules/pm2/lib/Daemon.js
argv0 : node
user : root
uid : 0
gid : 0
uptime : 0min
===============================================================================
--- CLI ----------------------------------------------------
local pm2 : 5.1.0
node version : 12.22.2
node path : /usr/bin/pm2
argv : /usr/bin/node,/usr/bin/pm2,report
argv0 : node
user : root
uid : 0
gid : 0
===============================================================================
--- System info --------------------------------------------
arch : arm64
platform : linux
type : Linux
cpus : unknown
cpus nb : 2
freemem : 2532102144
totalmem : 4056465408
home : /root
===============================================================================
--- PM2 list -----------------------------------------------
┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
└─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
/root/.pm2/pm2.log last 20 lines:
PM2 | 2021-07-29T07:15:33: PM2 log: ===============================================================================
PM2 | 2021-07-29T07:15:33: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
PM2 | 2021-07-29T07:15:33: PM2 log: Time : Thu Jul 29 2021 07:15:33 GMT+0000 (Coordinated Universal Time)
PM2 | 2021-07-29T07:15:33: PM2 log: PM2 version : 5.1.0
PM2 | 2021-07-29T07:15:33: PM2 log: Node.js version : 12.22.2
PM2 | 2021-07-29T07:15:33: PM2 log: Current arch : arm64
PM2 | 2021-07-29T07:15:33: PM2 log: PM2 home : /root/.pm2
PM2 | 2021-07-29T07:15:33: PM2 log: PM2 PID file : /root/.pm2/pm2.pid
PM2 | 2021-07-29T07:15:33: PM2 log: RPC socket file : /root/.pm2/rpc.sock
PM2 | 2021-07-29T07:15:33: PM2 log: BUS socket file : /root/.pm2/pub.sock
PM2 | 2021-07-29T07:15:33: PM2 log: Application log path : /root/.pm2/logs
PM2 | 2021-07-29T07:15:33: PM2 log: Worker Interval : 30000
PM2 | 2021-07-29T07:15:33: PM2 log: Process dump file : /root/.pm2/dump.pm2
PM2 | 2021-07-29T07:15:33: PM2 log: Concurrent actions : 2
PM2 | 2021-07-29T07:15:33: PM2 log: SIGTERM timeout : 1600
PM2 | 2021-07-29T07:15:33: PM2 log: ===============================================================================
qpitlove, DavidProf, flysnoworg, sh2aliyev, miguelriosoliveira and 12 moreDavidProf, flysnoworg, trademark18, sh2aliyev, miguelriosoliveira and 5 more
Metadata
Metadata
Assignees
Labels
No labels