zx icon indicating copy to clipboard operation
zx copied to clipboard

Windows: Create process not expected to return

Open XantreDev opened this issue 1 year ago • 4 comments

Expected Behavior

Command is executed correctly

Actual Behavior

Command failed

Steps to Reproduce the Problem

  1. Try to execute any command
const {$} = await import('zx')
$`pnpm`
> $ pnpm
<3>WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
Uncaught:
ProcessOutput {
  stdout: '',
  stderr: '<3>WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2\n' +
  '<3>WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return\n',
  signal: null,
  exitCode: 1
}

Specifications

  • Version: 7.2.3
  • Platform: Windows Node.js v20.12.0

XantreDev avatar Mar 31 '24 21:03 XantreDev

It doesn't look like a zx issue.

https://askubuntu.com/questions/1458921/bash-error-and-wsl-not-working

antongolub avatar Mar 31 '24 21:03 antongolub

I will try a solution, but I run zx from windows, not wsl

XantreDev avatar Mar 31 '24 21:03 XantreDev

Wsl should not work for using zx isn't it? image

XantreDev avatar Mar 31 '24 21:03 XantreDev

I see the problem image

XantreDev avatar Mar 31 '24 22:03 XantreDev

@XantreDev shouldn't this be closed?

chankruze avatar May 19 '24 17:05 chankruze

Now it seems to be working

XantreDev avatar May 19 '24 17:05 XantreDev