node.js 的协议缓冲区 - 无法从 .proto 生成 js
Protocol buffer with node.js - failed to generate js from .proto
正在尝试使用 google protocol buffer in my node.js web server with this documentation。
当运行以下命令时:
protoc --js_out=import_style=commonjs,binary: ServiceMessage.proto
我收到了:
--js_out: : Unknown option: import_style
有什么建议吗?
干杯,
伊泰
根据这个 discussion line,js_out
最近添加并在 2 月 20 日合并,您可以使用 protobuf 的最新代码更新您的协议。
正在尝试使用 google protocol buffer in my node.js web server with this documentation。
当运行以下命令时:
protoc --js_out=import_style=commonjs,binary: ServiceMessage.proto
我收到了:
--js_out: : Unknown option: import_style
有什么建议吗?
干杯, 伊泰
根据这个 discussion line,js_out
最近添加并在 2 月 20 日合并,您可以使用 protobuf 的最新代码更新您的协议。