I'm on Windows 10, the pm2 startup command fails with this error: C:\Users\Rocco\AppData\Roaming\npm\node_modules\pm2\lib\CLI.js:562 if (process.getuid() != 0) { ^ TypeError: undefined is not a function at Object.CLI.startup (C:\Users\Ro...
soyuka mentioned this issue Jul 16, 2015 pm2 startup throws an error on windows platform #1441 Closed ninjuki commented Jul 20, 2015 How to start pm2 resurrect as Windows Service Change Pm2 home folder mkdir C:\etc\.pm2 setx /M PM2_HOME C:\etc\.pm2 Crate a batch file (pm2-st...