当前位置: 代码迷 >> 综合 >> 【爬坑记录】grpc-gateway 出现google/protobuf/descriptor.proto: File not found.
  详细解决方案

【爬坑记录】grpc-gateway 出现google/protobuf/descriptor.proto: File not found.

热度:34   发布时间:2023-12-09 05:05:22.0

本地跑该项目出现类似如下错误

```csharp
google/protobuf/descriptor.proto: File not found. 
解决方法(mac os):

brew install protobuf@3.1
cd /usr/local/Cellar/protobuf@3.1/3.1.0
sudo cp bin/protoc /usr/local/bin/
sudo rm -r /usr/local/include/google/protobuf/
sudo cp -r include/google/protobuf/ /usr/local/include/google/protobuf/
sudo cp -r lib /usr/local/

  相关解决方案