npm install -g grpc-tools grpc_tools_node_protoc_ts
!!! Note that there is a conflict with protoc and newer TypeScript versions. For now, v4.3.4 can be used without an issue but v4.7.4 breaks things.
thesayyn/protoc-gen-ts#170 microsoft/TypeScript#50259
./node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-grpc=./node_modules/.bin/grpc_tools_node_protoc_plugin --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./src/proto --ts_out=grpc_js:./src/proto --grpc_out=grpc_js:./src/proto --proto_path=./src/proto ./src/proto/todo.proto