zx icon indicating copy to clipboard operation
zx copied to clipboard

7.1.1 broken on Windows 11

Open srmagura opened this issue 3 years ago • 2 comments

Expected Behavior

npx zx test.mjs works on Windows where test.mjs is:

$`echo 1`;

Actual Behavior

$ echo 1
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install

This happens because bash points to C:\Windows\system32\bash.exe, which is not the real Bash, but rather some sort of "advertisement" for WSL.

Specifications

  • Version: 7.1.1
  • Platform: Windows 11

srmagura avatar Oct 19 '22 02:10 srmagura

This was discussed in the comments of https://github.com/google/zx/issues/523 by the way.

srmagura avatar Oct 19 '22 02:10 srmagura

Just install Git - it must be installed for development! :)

budarin avatar Oct 19 '22 21:10 budarin