pm2
pm2 copied to clipboard
Error caught while calling pidusage
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.
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
It looks like the pidusage package fixed this issue in version 4 so hopefully pm2 upgrades soon.