-
-
Notificat
8000
ions
You must be signed in to change notification settings - Fork 236
spawn ENOENT in GitHub Actions #544
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
Comments
Hi @timheerwagen, If Can you try with that option enabled and without |
I tried it with preferLocal, whether with or without NPX, the error output remains the same. |
This is a complex setup: GitHub action + turbo + Execa. |
I have now created a minimal reproduction and I am encountering the same error. |
Thanks! If you want to pass both the file and arguments as a single string, |
Thank you for your help, I must have overlooked that. |
When i start a node package with npx in a github action, in which an execa command is executed, and then get the following error message directly when I try to start this command:
spawn turbo run build --scope=admin ENOENT
orspawn npx turbo run build --scope=admin ENOENT
. On local everything works.Apparently it cannot find the spawn command.
I have found the following workaround, which is to add {shell: true} to the execa command. But I don't like this for reasons that are obviously shown in the documentation.
The text was updated successfully, but these errors were encountered: