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

Error: spawn EINVAL on windows #2

Closed
glehmann opened this issue Apr 16, 2024 · 3 comments
Closed

Error: spawn EINVAL on windows #2

glehmann opened this issue Apr 16, 2024 · 3 comments

Comments

@glehmann
Copy link

This error appear in my pipeline a few days ago, without obvious changes that may have caused that on my side:

> node-gyp-build

node:internal/child_process:421
    throw new ErrnoException(err, 'spawn');
    ^

Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:761:9)
    at build (D:\a\tree-sitter-earthfile\tree-sitter-earthfile\node_modules\node-gyp-build\bin.js:30:8)
    at preinstall (D:\a\tree-sitter-earthfile\tree-sitter-earthfile\node_modules\node-gyp-build\bin.js:39:32)
    at D:\a\tree-sitter-earthfile\tree-sitter-earthfile\node_modules\node-gyp-build\bin.js:11:7
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
  errno: -4071,
  code: 'EINVAL',
  syscall: 'spawn'
}

maybe something changed in one of the dependency?

https://github.com/glehmann/tree-sitter-earthfile/actions/runs/8709326071/job/23888716969#step:4:178

@ObserverOfTime
Copy link
Member

ObserverOfTime commented Apr 16, 2024

See prebuild/prebuildify#83 & prebuild/node-gyp-build#68. It should work if you set node-version: 20.12.1.

glehmann added a commit to glehmann/tree-sitter-earthfile that referenced this issue Apr 16, 2024
@glehmann
Copy link
Author

ok, going back to 21.7.1 worked for me 👍 . I had other problems with 20.12.1 on all the platforms

sebastiaanspeck added a commit to sebastiaanspeck/tree-sitter-magik that referenced this issue Apr 17, 2024
@ObserverOfTime
Copy link
Member

Resolved upstream, just run npm update (or have dependabot update them).

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

2 participants