Hyperledger Fabric chaincode instantiation返回超时已到期:找不到package.json

时间:2017-12-11 09:19:29

标签: node.js hyperledger-fabric

编辑:我解决了!这是我的部署脚本和pwd的问题。如果只有路径存在,如果没有源文件,对等安装通常不会提示任何错误。

我试图在Fabric v1.1.0预览泊坞窗图像上部署NodeJS上开发的链码,但我得到的是[chaincode] Launch -> ERRO 039 launchAndWaitForRegister failed: timeout expired while starting chaincode

现在是作为chaincode_example02,但修改了 init 功能以匹配我自己的(chaincode_example02运行OK btw)。

我在basic-network

下使用fabric-samples

错误似乎与Hyperledger Fabric chaincode instantiation returns timeout expired相似,但在这种情况下,我的链码的容器已经创建了。

当我查看日志时,它会提示:

npm ERR! path /usr/local/src/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/src/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-12-11T09_00_28_708Z-debug.log

有任何线索吗? 提前谢谢!

0 个答案:

没有答案