Protocol buffers 节点红色contrib protobuf未找到.proto文件

Protocol buffers 节点红色contrib protobuf未找到.proto文件,protocol-buffers,node-red,Protocol Buffers,Node Red,我正在heroku服务器上使用node red contrib protobuf 我尝试了许多不同的.proto文件的相对路径。问题是我不断地遇到这个错误: “无法加载Proto文件。错误:enoint:没有这样的文件或目录,请打开”“../src/assets/protocol\u buffers\u files/generic\u message.Proto” 我也尝试过这个“/src/assets/protocol\u buffers\u files/generic\u message.p

我正在heroku服务器上使用node red contrib protobuf

我尝试了许多不同的.proto文件的相对路径。问题是我不断地遇到这个错误: “无法加载Proto文件。错误:enoint:没有这样的文件或目录,请打开”“../src/assets/protocol\u buffers\u files/generic\u message.Proto”

我也尝试过这个“/src/assets/protocol\u buffers\u files/generic\u message.proto”


my node red部署的实例位于heroku上。相对路径正确。为什么node red contrib protobuf找不到该协议文件?

该协议文件使用设置中的node red前缀。因此文件需要位于该目录路径中。

相对路径最有可能是相对于节点的
.js
文件,而不是Node RED userDIRYes您是正确的,因此我将其放在了./.Node RED文件夹下,它可以正常工作