I was updating my node from 14 to 16, then saw 18 was out too.
When I use 18 I got errors like this in PM2:
PM2 | Error caught while calling pidusage
PM2 | Error: os400 is not supported yet, please open an
issue (
https://github.com/soyuka/pidusage)
PM2 | at get
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/node_modules/pidusage/lib/stats.js:56:21)
PM2 | at pidusage
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/node_modules/pidusage/index.js:30:5)
PM2 | at Object.getMonitorData
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/lib/God/ActionMethods.js:60:5)
PM2 | at tasks
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/lib/Worker.js:150:9)
PM2 | at Domain.<anonymous>
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/lib/Worker.js:193:7)
PM2 | at Domain.run (node:domain:382:15)
PM2 | at Timeout.wrappedTasks [as _onTimeout]
(/QOpenSys/pkgs/lib/nodejs18/lib/node_modules/pm2/lib/Worker.js:192:7)
PM2 | at listOnTimeout (node:internal/timers:564:17)
PM2 | at process.processTimers
(node:internal/timers:507:7)
Then I changed my profile to use version 16.. ended SSHD, started up a new
session, checked the node version (it was 16) and started my app again.
I am still getting the same error in the log... and it's reporting
nodejs18, not nodejs16. I even deleted all my apps from PM2 and restarted
them, but I can't get it to not report about node 18.
Should I stick with version 14? When I change it back to 14 I don't get the
errors.
Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud
Provider!
As an Amazon Associate we earn from qualifying purchases.