简体   繁体   中英

Protocol buffer with node.js - failed to generate js from .proto

Trying to use google protocol buffer in my node.js web server with this documentation .

When running the following command:

protoc --js_out=import_style=commonjs,binary: ServiceMessage.proto

I received:

--js_out: : Unknown option: import_style

Any suggestions?

Cheers, Itay

根据此讨论行js_out是最近添加的,并于2月20日合并,您可以使用protobuf的最新代码更新协议。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM