我将protobufjs从6.11.2更新为7.1.2,然后当我运行编译器来编译我的原型时,我得到了这个错误
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
error Command failed with exit code 1.我该怎么办?
发布于 2022-11-07 10:18:56
我通过添加protobufjs-cli来解决这个问题。
yarn add protobufjs-clihttps://stackoverflow.com/questions/74335678
复制相似问题