【gRPC-Web】protoc-gen-grpc-web: program not found or is not executable
gRPCのWebクライアントが正式リリースされましたね
gRPC-Web is going GA
なんか楽しそうなので触ってみました。
が、早々にprotocでこけた。
protoc todos.proto \ --js_out=import_style=commonjs:./output \ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./output #protoc-gen-grpc-web: program not found or is not executable #--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.
protoc-gen-grpc-webをインストールするために、grpc-webのリポジトリのMakefileを実行する必要があるようです。
というかここに書いてあった。
GitHub - grpc/grpc-web: gRPC for Web Clients
というわけで以下を実行
git clone https://github.com/grpc/grpc-web.git cd grpc-web make install-plugin
動くようになりました。