-
Notifications
You must be signed in to change notification settings - Fork 37
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
[BUG] Error: spawn EINVAL #83
Comments
I am also getting this when using tree-sitter's package-npm workflow. Exact same issue, only happening when building for windows 64bit. Not an issue for macOS and linux ubuntu |
Which Node.js versions have this issue? Only 20? |
@vweevers It relates to versions 18 and 20, which received some security fixes. |
PR is welcome to add |
Same as @derevnjuk, I can confirm the issue exists with node 18 and 20. As for the side effects, I can also confirm that using |
@Badisi It seems it only affects Windows x86, but I'm not sure. Have you tested it? |
@derevnjuk, Adding |
@Badisi, thanks! 🙏🏾 I have opened the PR and am waiting for the review and feedback. |
@vweevers the root cause is straightforward: Node.js team forbids the use of |
Could you please provide an update on this issue? I believe this, along with the similar issue prebuild/node-gyp-build#68, should be considered critical bugs. |
Offers some temporary fixes to make `main` green and provide a migration guide until we have a long-term story for #735. Also includes a node fix with [executing `.bat` files](https://github.com/trunk-io/plugins/actions/runs/8702103641/job/23865448625) related to prebuild/prebuildify#83
Issue
I'm playing with the following github action:
The main idea is to run prebuildify on
macos-latest:x64
,ubuntu-latest:x64
,windows-latest:x64
andwindows-latest:x86
.Everything works fine except for the
windows-latest:x86
where I get the following issue:Investigation
The code in
prebuildify index.js:230
is:After debugging I can see that the actual value used for
opts.nodeGyp
is "node-gyp.cmd":Solution
There seems to have some issues with
spawn
on Windows and most of the time people suggests to useshell: true
to solve it.So I monkey patched the previous code in prebuildify like this:
and it indeed solved the issue.
The text was updated successfully, but these errors were encountered: