Skip to content

运行 anyproxy --intercept 时报错 throw er; // Unhandled 'error' even #602

@Turbolento

Description

@Turbolento

Platform : Windows 11 Home 21H2 X64
AnyProxy Version: 4.1.3

运行 anyproxy --intercept 时报错,报错信息如下:

    C:\Users\admin>anyproxy --intercept
    node:events:504
          throw er; // Unhandled 'error' event
          ^
    
    Error: spawn powershell.exe ENOENT
        at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
        at onErrorNT (node:internal/child_process:478: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:289:12)
        at onErrorNT (node:internal/child_process:478:16)
        at processTicksAndRejections (node:internal/process/task_queues:83:21) {
      errno: -4058,
      code: 'ENOENT',
      syscall: 'spawn powershell.exe',
      path: 'powershell.exe',
      spawnargs: [
        '-ExecutionPolicy',
        'Bypass',
        '-NoProfile',
        '-NoLogo',
        '-NoExit',
        '-InputFormat',
        'Text',
        '-Command',
        '-'
      ]
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions