【发布时间】:2020-02-25 06:49:46
【问题描述】:
我目前正在使用 grpc-web 为我的服务编写一个简单的客户端。我创建了一个使用 protoc 成功编译的 service.proto 文件。当我尝试使用插件 protoc-gen-grpc-web 生成 gRPC-Web 服务客户端存根时出现问题,尽管安装了后者,但该存根不起作用。
出现以下错误:
protoc -I=./ service.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./
protoc-gen-grpc-web: program not found or is not executable
--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.
关于如何解决此问题的任何建议?谢谢!
【问题讨论】:
标签: grpc-web