Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhaldled error when trying to configure profile in WSL #243

Open
borisnaydis opened this issue May 27, 2022 · 0 comments
Open

Unhaldled error when trying to configure profile in WSL #243

borisnaydis opened this issue May 27, 2022 · 0 comments

Comments

@borisnaydis
Copy link

borisnaydis commented May 27, 2022

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='
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant