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

vitest --ui fails to run on Windows 11 ARM64 #5644

Closed
6 tasks done
fasterinnerlooper opened this issue Apr 30, 2024 · 2 comments
Closed
6 tasks done

vitest --ui fails to run on Windows 11 ARM64 #5644

fasterinnerlooper opened this issue Apr 30, 2024 · 2 comments

Comments

@fasterinnerlooper
Copy link

Describe the bug

When running the vitest --ui command from the command line on a Windows 11 ARM64 machine, the command fails with the following output:

0 pwsh> pnpm exec vitest --ui

 DEV  v0.21.1 C:/Users/shafiq.jetha/source/repos/Versaic/bVenus/Rovensys.bVenus/Rovensys.bVenus.Web/BenevityFlex
      UI started at http://localhost:51204/__vitest__/

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn undefined\System32\WindowsPowerShell\v1.0\powershell ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:485: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:291:12)
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn undefined\\System32\\WindowsPowerShell\\v1.0\\powershell',
  path: 'undefined\\System32\\WindowsPowerShell\\v1.0\\powershell',
  spawnargs: [
    '-NoProfile',
    '-NonInteractive',
    '–ExecutionPolicy',
    'Bypass',
    '-EncodedCommand',
    'UwB0AGEAcgB0ACAAIgBgACIAYwA6AFwAVQBzAGUAcgBzAFwAcwBoAGEAZgBpAHEALgBqAGUAdABoAGEAXAAuAHYAcwBjAG8AZABlAFwAYwBsAGkAXABzAGUAcgB2AGUAcgBzAFwAUwB0AGEAYgBsAGUALQBlADEANwAwADIANQAyAGYANwA2ADIANgA3ADgAZABlAGMANgBjAGEAMgBjAGMANgA5AGEAYgBhADEANQA3ADAANwA2ADkAYQA1AGQAMwA5AFwAcwBlAHIAdgBlAHIAXABiAGkAbgBcAGgAZQBsAHAAZQByAHMAXABiAHIAbwB3AHMAZQByAC4AYwBtAGQAYAAiACIAIAAtAEEAcgBnAHUAbQBlAG4AdABMAGkAcwB0ACAAIgBgACIAaAB0AHQAcAA6AC8ALwBsAG8AYwBhAGwAaABvAHMAdAA6ADUAMQAyADAANAAvAF8AXwB2AGkAdABlAHMAdABfAF8ALwBgACIAIgA='
  ]
}

Reproduction

  1. Run a machine with Windows ARM64
  2. Install Vitest anywhere on the machine
  3. Attempt to run vitest --ui
  4. See the error message shown above

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (4) x64 Apple Silicon
    Memory: 1.28 GB / 7.99 GB
  Binaries:
    Node: 16.20.2 - C:\Program Files (x86)\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files (x86)\nodejs\yarn.CMD
    npm: 8.19.4 - C:\Program Files (x86)\nodejs\npm.CMD
    pnpm: 8.6.11 - C:\Program Files (x86)\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (124.0.2478.51)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vitest/ui: ~0.21.1 => 0.21.1
    vite: ~2.9.14 => 2.9.14
    vitest: ~0.21.0 => 0.21.1

Used Package Manager

pnpm

Validations

@hi-ogawa
Copy link
Contributor

hi-ogawa commented May 1, 2024

Can you try after upgrading your dependencies to the latest?

  Binaries:
    Node: 16.20.2 - C:\Program Files (x86)\nodejs\node.EXE
 ...
  npmPackages:
    @vitest/ui: ~0.21.1 => 0.21.1
    vite: ~2.9.14 => 2.9.14
    vitest: ~0.21.0 => 0.21.1

Also "spawn undefined" seems to be reported in the past:

@fasterinnerlooper
Copy link
Author

Thanks @hi-ogawa. The issue was described and resolved in this comment: #1870 (comment).
I was able to follow the instructions and resolved the issue, so I'm going to close this.
Thanks again for your help.

@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants