使用yarn运行编译protobuf js时出现错误“pbjs:找不到命令”

问题描述 投票:0回答:2

我将

protobufjs
6.11.2
更新为
7.1.2
然后当我运行编译器来编译 protobuf 时,我收到此错误
pbjs: command not found error Command failed with exit code 127.
我该怎么办?

reactjs protobufjs
2个回答
0
投票

我尝试全局添加

pbjs
并解决了。
yarn global add pbjs


0
投票

npm install -D protobufjs-cli npx pbjs

© www.soinside.com 2019 - 2024. All rights reserved.