運行protojs命令錯誤Usage: pbjs [options]
運行protojs命令,顯示
Usage: pbjs [options] <schema_path>
Options:
-V, --version output the version number
--es5 <js_path> Generate ES5 JavaScript code
--es6 <js_path> Generate ES6 JavaScript code
--ts <ts_path> Generate TypeScript code
--decode <msg_type> Decode standard input to JSON
--encode <msg_type> Encode standard input to JSON
-h, --help output usage information
解決方法:
npm install protobufjs-cli
posted on 2023-02-08 11:14 Benjamin 閱讀(527) 評論(0) 編輯 收藏 引用 所屬分類: 雜談