Skip to content

Error on running command pm2-startup install #16

Description

@aviralgoyal

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"'
]
}

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions