tree-sitter-cli specifically to fix build failures on Apple Silicon per https://github.com/tree-sitter/tree-sitter/issues/2009. With the current version, I get the below error locally. With the updated version, I am able to build. Only going to 0.22.X as newer versions introduce other build failures.
❯ make tree-sitter-vcl tree-sitter-vtc
cd vendor/tree-sitter-vcl && npm ci && npm run build
added 2 packages, and audited 3 packages in 30s
found 0 vulnerabilities
> tree-sitter-vcl@1.0.0 build
> tree-sitter generate
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at Object.<anonymous> (/Users/duffn/code/varnishls/vendor/tree-sitter-vcl/node_modules/tree-sitter-cli/cli.js:8:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -86,
code: 'Unknown system error -86',
syscall: 'spawn'
}
Node.js v21.4.0
make: *** [tree-sitter-vcl] Error 1
This updates the Node package versions.
tree-sitter-cli
specifically to fix build failures on Apple Silicon per https://github.com/tree-sitter/tree-sitter/issues/2009. With the current version, I get the below error locally. With the updated version, I am able to build. Only going to0.22.X
as newer versions introduce other build failures.nan
just bumping the version to the latest