-
Notifications
You must be signed in to change notification settings - Fork 764
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
protoc-gen-js: program not found or is not executable #704
Comments
Doesn't seem like this is a grpc-web issue, especially if |
If anyone is having this problem on macOS and got here from Google, a workaround that worked for me:
|
As you are doing this you probably want to have a look at these: https://github.com/grpc/grpc-web grpc/grpc-web#704 (comment)
I have created a npm package to help everyone. You can now You can also Right now the only version supported is '3.21.2' but I'll try to keep it up to date as new releases are made. |
I don't want to downgrade my homebrew protobuf version. So I figured it out on my own. On macOS,
It's a bit verbose I know, but I just use the latest version of anything, and all from the official repos. |
I use
grpc_tools
to generate the code of proto files inpython
script, but I got errors after I installedprotoc-gen-grpc-web
and run the script. But the commandprotoc -I=. *.proto --js_out=import_style=commonjs:.
is working without any errors inTerminal
.My python script
The errors of my script
Warning: the
grpc
code file is generated after run the scriptHow can I fix this for my script? Or do I need install the generator
protoc-gen-js
? Please help.The text was updated successfully, but these errors were encountered: