Skip to content

Unhaldled error when trying to configure profile in WSL #243

@borisnaydis

Description

@borisnaydis

ALSK CLI throws an error when I try to use it in WSL (version 1).

❯ alks developer configure
ALKS v3.11.0
? ALKS server https://alks.coxautoinc.com/rest
? Network Username BNAIDIS
? Please choose an authentication type refresh-token
Opening ALKS 2FA Page.. Be sure to login using Okta..
If the 2FA page does not open, please visit https://alks.coxautoinc.com/token-management
Please copy your refresh token from ALKS and paste below..
? Refresh Token [hidden] [input is hidden]
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: spawn /c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe EACCES
    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: -13,
  code: 'EACCES',
  syscall: 'spawn /c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe',
  path: '/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe',
  spawnargs: [
    '-NoProfile',
    '-NonInteractive',
    '–ExecutionPolicy',
    'Bypass',
    '-EncodedCommand',
    'UwB0AGEAcgB0ACAAIgBoAHQAdABwAHMAOgAvAC8AYQBsAGsAcwAuAGMAbwB4AGEAdQB0AG8AaQBuAGMALgBjAG8AbQAvAHQAbwBrAGUAbgAtAG0AYQBuAGEAZwBlAG0AZQBuAHQAIgA='
  ]
}

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