pm2 not working on window 10 nodejs
--- PM2 report ---------------------------------------------------------------- Date : Fri Nov 01 2019 12:06:04 GMT+0530 (India Standard Time)
--- Daemon ------------------------------------------------- pm2d version : 4.1.2 node version : 10.16.0 node path : not found argv : C:\Program Files\nodejs\node.exe,C:\Users\PUSHPENDER\AppData\Roaming\npm\node_modules\pm2\lib\Daemon.js argv0 : node user : undefined uid : N/A gid : N/A uptime : 7min
--- CLI ---------------------------------------------------- local pm2 : 4.1.2 node version : 10.16.0 node path : not found argv : C:\Program Files\nodejs\node.exe,C:\Users\PUSHPENDER\AppData\Roaming\npm\node_modules\pm2\bin\pm2,report argv0 : node user : Pushpender
--- System info -------------------------------------------- arch : x64 platform : win32 type : Windows_NT cpus : Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz cpus nb : 4 freemem : 8912527360 totalmem : 17054093312 home : C:\Users\PUSHPENDER
--- PM2 list ----------------------------------------------- ┌────┬────────────────────┬──────────┬──────┬──────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼──────────┼──────────┼──────────┤ │ 0 │ npm │ fork │ 31 │ errored │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴──────────┴──────────┴──────────┘
--- Daemon logs -------------------------------------------- C:\Users\PUSHPENDER.pm2\pm2.log last 20 lines: PM2 | 2019-11-01T12:01:47: PM2 log: App [npm:0] online PM2 | 2019-11-01T12:01:47: PM2 error: Error caught while calling pidusage PM2 | 2019-11-01T12:01:47: PM2 error: Error: Error: spawn wmic ENOENT PM2 | 2019-11-01T12:01:47: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] PM2 | 2019-11-01T12:01:47: PM2 log: App [npm:0] starting in -fork mode- PM2 | 2019-11-01T12:01:47: PM2 log: App [npm:0] online PM2 | 2019-11-01T12:01:48: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] PM2 | 2019-11-01T12:01:48: PM2 log: App [npm:0] starting in -fork mode- PM2 | 2019-11-01T12:01:48: PM2 log: App [npm:0] online PM2 | 2019-11-01T12:01:48: PM2 error: Error caught while calling pidusage PM2 | 2019-11-01T12:01:48: PM2 error: Error: Error: spawn wmic ENOENT PM2 | 2019-11-01T12:01:48: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] PM2 | 2019-11-01T12:01:49: PM2 log: App [npm:0] starting in -fork mode- PM2 | 2019-11-01T12:01:49: PM2 log: App [npm:0] online PM2 | 2019-11-01T12:01:49: PM2 error: Error caught while calling pidusage PM2 | 2019-11-01T12:01:49: PM2 error: Error: Error: spawn wmic ENOENT PM2 | 2019-11-01T12:01:49: PM2 error: Error caught while calling pidusage PM2 | 2019-11-01T12:01:49: PM2 error: Error: Error: spawn wmic ENOENT PM2 | 2019-11-01T12:01:49: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] PM2 | 2019-11-01T12:01:49: PM2 log: Script C:\USERS\PUSHPENDER\APPDATA\ROAMING\NPM\NPM.CMD had too many unstable restarts (16). Stopped. "errored"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.