grpc-node
grpc-node copied to clipboard
Error while executing: buf generate
Problem description
Hello! I'm currently getting the following error on my machine. How can I troubleshoot further?
lerna ERR! yarn run build stderr:
DEBUG get_ref {"duration": "0s"}
DEBUG get_config {"duration": "1.1167ms"}
DEBUG get_config {"duration": "1.5548ms"}
DEBUG get_config {"duration": "0s"}
DEBUG get_module_config {"duration": "2.5937ms"}
DEBUG get_image {"duration": "998.8µs"}
DEBUG build {"duration": "156.3924ms"}
DEBUG build_module {"duration": "156.3924ms"}
events.js:377
throw er; // Unhandled 'error' event
^
Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)
Emitted 'error' event on Socket instance at:
at Socket.onerror (internal/streams/readable.js:750:14)
at Socket.emit (events.js:400:28)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}
DEBUG plugin_proxy {"duration": "289.7649ms", "plugin": "grpc_tools_node_protoc_plugin.cmd"}
DEBUG command {"duration": "472.7568ms"}
Failure: plugin grpc: exit status 1
Error while executing:
buf generate --verbose --debug 'C:\Users\Jan\tsg\1st'
Error: Command failed: buf generate --verbose --debug C:\Users\Jan\tsg\1st
at checkExecSyncError (child_process.js:790:11)
at Object.execFileSync (child_process.js:827:15)
at generate (C:\Users\Jan\tsg\1st\script\dist\build-buf-project.js:105:29)
at Object.build (C:\Users\Jan\tsg\1st\script\dist\build-buf-project.js:194:5)
at Command.build (C:\Users\Jan\tsg\1st\script\build-js-buf-project.js:283:7)
at Command.listener [as _actionHandler] (C:\Users\Jan\tsg\1st\.yarn\cache\commander-npm-8.1.0-443b867d63-75abce64ed.zip\node_modules\commander\lib\command.js:473:17)
at C:\Users\Jan\tsg\1st\.yarn\cache\commander-npm-8.1.0-443b867d63-75abce64ed.zip\node_modules\commander\lib\command.js:1173:65
at Command._chainOrCall (C:\Users\Jan\tsg\1st\.yarn\cache\commander-npm-8.1.0-443b867d63-75abce64ed.zip\node_modules\commander\lib\command.js:1091:12)
at Command._parseCommand (C:\Users\Jan\tsg\1st\.yarn\cache\commander-npm-8.1.0-443b867d63-75abce64ed.zip\node_modules\commander\lib\command.js:1173:27)
at Command.parse (C:\Users\Jan\tsg\1st\.yarn\cache\commander-npm-8.1.0-443b867d63-75abce64ed.zip\node_modules\commander\lib\command.js:845:10) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 23280,
stdout: null,
stderr: null
}
All other devs doesn't get an error. All of us have the same versions of node, nvm, golang, protoc, etc. I tried uninstalling then installing those tools but didn't make a difference.
The failing buf.gen.yaml looks like this
version: v1beta1
plugins:
- name: grpc
out: lib
strategy: all
opt: grpc_js
path: grpc_tools_node_protoc_plugin
The following plugins work:
- name: js
out: lib
strategy: all
opt: import_style=commonjs,binary
- name: grpc-node-async
out: lib
strategy: all
- name: ts
out: lib
strategy: all
opt: grpc_js
Environment
- Windows 11
- Node version: 14.21.3
- Node installation method: nvm
node -v # 14.21.3
yarn -v # 3.1.1
nvm -v # 1.1.11
python --version # 3.9.6
go version # 1.18.5
protoc --version # 3.21.12
buf --version # 1.12.0