Open aviralgoyal opened 2 years ago
OS : Windows Server 2019 Edition
Geeting the following error while installing:
`C:\Users\Administrator>pm2-startup install node:events:368 throw er; // Unhandled 'error' event ^
Error: spawn REG ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -4058, code: 'ENOENT', syscall: 'spawn REG', path: 'REG', spawnargs: [ 'ADD', 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run', '/f', '/v', 'PM2', '/t', 'REG_SZ', '/d', 'wscript.exe "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-startup\invisible.vbs" "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-startup\pm2_resurrect.cmd"' ] }
`
Same problem, looking for help!
OS : Windows Server 2019 Edition
Geeting the following error while installing:
`C:\Users\Administrator>pm2-startup install node:events:368 throw er; // Unhandled 'error' event ^
Error: spawn REG ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -4058, code: 'ENOENT', syscall: 'spawn REG', path: 'REG', spawnargs: [ 'ADD', 'HKCU\Software\Microsoft\Windows\CurrentVersion\Run', '/f', '/v', 'PM2', '/t', 'REG_SZ', '/d', 'wscript.exe "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-startup\invisible.vbs" "C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2-windows-startup\pm2_resurrect.cmd"' ] }
`