When I install grpc-tools and try to run code generation (i.e. node node_modules/.bin/grpc_tools_node_protoc [...]), I get an error
node_modules/.bin/grpc_tools_node_protoc [...]
node:internal/child_process:414
throw errnoException(err, 'spawn');
^
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:414:11)
at spawn (node:child_process:761:9)
at execFile (node:child_process:351:17)
at Object.<anonymous> ([..]/node_modules/grpc-tools/bin/protoc.js:39:21)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47 {
errno: -86,
code: 'Unknown system error -86',
syscall: 'spawn'
}
Node.js v18.18.2
I then tried to run the command that the protoc.js file generates directly
zsh: bad CPU type in executable: node_modules/grpc-tools/bin/protoc
Reproduction steps
See above.
install grpc-tools
run node_modules/grpc-tools/bin/protoc --version
(you get the same error when running node_modules/grpc-tools/bin/grpc_node_plugin --version)
Environment
OS name, version and architecture: MacOS 14.2.1 arm64 (uname -a prints Darwin [device id] 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:51 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6030 arm64)
Node version 18.18.2 (also tried 18.19.0)
Node installation method volta
Package name and version grpc-tools@1.12.4
Additional context
I don't think this library is responsible for building the binary that is not working for me, but I also don't know where else to report this error to.
Problem description
When I install grpc-tools and try to run code generation (i.e.
node node_modules/.bin/grpc_tools_node_protoc [...]
), I get an errorI then tried to run the command that the protoc.js file generates directly
But that gives me a different error
Reproduction steps
See above.
grpc-tools
node_modules/grpc-tools/bin/protoc --version
node_modules/grpc-tools/bin/grpc_node_plugin --version
)Environment
uname -a
printsDarwin [device id] 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:51 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6030 arm64
)grpc-tools@1.12.4
Additional context
I don't think this library is responsible for building the binary that is not working for me, but I also don't know where else to report this error to.