pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

Error caught while calling pidusage

Open mark-hahn opened this issue 1 year ago • 1 comments

Does this look familiar to anyone?

Error caught while calling pidusage
PM2      | Error: Error: spawn wmic ENOENT
PM2      |     at ChildProcess.<anonymous> (C:\Users\mark\AppData\Local\nvm\v23.6.1\node_modules\pm2\node_modules\pidusage\lib\bin.js:33:10)
PM2      |     at ChildProcess.emit (node:events:507:28)
PM2      |     at ChildProcess.emit (node:domain:489:12)
PM2      |     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
PM2      |     at onErrorNT (node:internal/child_process:484:16)
PM2      |     at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

I' m getting this repeatably in the logs. My app is working anyway.

I'm on windows 11 with the latest pm2.

mark-hahn avatar Jan 30 '25 19:01 mark-hahn

Having the same issue - WMIC is now deprecated.. https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

sharq88 avatar Feb 25 '25 12:02 sharq88

It looks like the pidusage package fixed this issue in version 4 so hopefully pm2 upgrades soon.

matt-schrader avatar Jul 15 '25 02:07 matt-schrader