I want to configure node js server even after restarting windows it need to run once the system turned on.
so i am trying to run command pm2 startup as per the documentation
Am receiving the following error
[PM2][ERROR] Init system not found
C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209
throw new Error('Init system not found');
^
Error: Init system not found
at API.CLI.startup (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209:13)
at Command. (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:707:9)
at Command.listener (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:315:8)
at Command.emit (events.js:400:28)
at Command.parseArgs (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:474:21)
at Timeout._onTimeout (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:206:15)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
I want to configure node js server even after restarting windows it need to run once the system turned on.
so i am trying to run command pm2 startup as per the documentation
Am receiving the following error
[PM2][ERROR] Init system not found C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209 throw new Error('Init system not found'); ^
Error: Init system not found at API.CLI.startup (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209:13) at Command. (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:707:9)
at Command.listener (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:315:8)
at Command.emit (events.js:400:28)
at Command.parseArgs (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:474:21)
at Timeout._onTimeout (C:\Users\sarav\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:206:15)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)