简体   繁体   中英

How can I solve this pm2 log errors?

在此处输入图片说明 在此处输入图片说明 I installed pm2 but it occurs some errors. (I installed pm2 with "npm install pm2 -g")

But I don't know how to deal with these errors.

How should I solve this error?

node.js version: 10.15.1 , pm2 version: 3.3.0 , os: windows 7

pm2.log

Error caught while calling pidusage
Error: Error: spawn wmic ENOENT
at ChildProcess.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\pm2\node_modules\pidusage\lib
\bin.js:33:10)
at emitOne (events.js:116:13)
at ChildProcess.emit (events.js:211:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)
|Error caught while calling pidusage
Error: Error: spawn wmic ENOENT
at ChildProcess.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\pm2\node_modules\pidusage\lib
\bin.js:33:10)

wmic is not available on your system, check C:\\WINDOWS\\System32\\wbem folder.

Please check also if C:\\WINDOWS\\System32\\wbem is in system PATH environment variable.

What is your npm version? I think you should upgrade it version, remove node_modules folder, clear cache and run npm install again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM