小编i_A*_*oot的帖子

安装 protoc-gen-grpc-web

我目前正在使用 grpc-web 为我的服务编写一个简单的客户端。我创建了一个 service.proto 文件,该文件已使用 protoc 成功编译。当我尝试使用插件 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.
Run Code Online (Sandbox Code Playgroud)

关于如何解决这个问题有什么建议吗?谢谢你!

grpc-web

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

grpc-web ×1