From 3b30bb6346c2a2a79125c1a81f271db90194e8c5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 2 Jan 2018 22:33:16 +0800 Subject: [PATCH] fix: missing grpc tool for node.js --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 9b29ce0..a0988b8 100644 --- a/Makefile +++ b/Makefile @@ -205,6 +205,9 @@ clean: -rm -rf release dist .cover rpc/example/node/gorush_*_pb.js: rpc/proto/gorush.proto + @hash grpc_tools_node_protoc_plugin > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + npm install -g grpc-tools; \ + fi protoc -I rpc/proto rpc/proto/gorush.proto --js_out=import_style=commonjs,binary:rpc/example/node/ --grpc_out=rpc/example/node/ --plugin=protoc-gen-grpc=$(NODE_PROTOC_PLUGIN) rpc/proto/gorush.pb.go: rpc/proto/gorush.proto