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

Windows: Create process not expected to return #761

Closed
XantreDev opened this issue Mar 31, 2024 · 6 comments
Closed

Windows: Create process not expected to return #761

XantreDev opened this issue Mar 31, 2024 · 6 comments

Comments

@XantreDev
Copy link

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
@antongolub
Copy link
Contributor

It doesn't look like a zx issue.

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

@XantreDev
Copy link
Author

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

@XantreDev
Copy link
Author

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

@XantreDev
Copy link
Author

I see the problem
image

@chankruze
Copy link
Contributor

@XantreDev shouldn't this be closed?

@XantreDev
Copy link
Author

Now it seems to be working

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

3 participants