zx
zx copied to clipboard
Windows: Create process not expected to return
Expected Behavior
Command is executed correctly
Actual Behavior
Command failed
Steps to Reproduce the Problem
- 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
It doesn't look like a zx issue.
https://askubuntu.com/questions/1458921/bash-error-and-wsl-not-working
I will try a solution, but I run zx from windows, not wsl
Wsl should not work for using zx isn't it?
I see the problem
@XantreDev shouldn't this be closed?
Now it seems to be working