【问题标题】:Hyperledger fabric 2.1 chaincode installationHyperledger Fabric 2.1 链码安装
【发布时间】:2020-10-12 08:21:38
【问题描述】:

我正在尝试使用最新的链代码生命周期在我的对等节点中安装节点链代码。但是当我尝试安装链码时出现以下错误

 peer lifecycle chaincode install testcc.tar.gz

错误:

Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input
+ OUTPUT_DIR=/chaincode/output
+ cp -R /chaincode/input/src/. /chaincode/output
+ cd /chaincode/output
+ '[' -f package-lock.json -o -f npm-shrinkwrap.json ]
+ npm install --production
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/DABH/diagnostics.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
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/2020-06-22T12_39_49_423Z-debug.log
"

【问题讨论】:

    标签: hyperledger-fabric hyperledger hyperledger-chaincode


    【解决方案1】:

    最近对链代码的更改似乎引入了不良的依赖关系。 Hyperledger Fabric Rocketchat 中有一个正在进行的讨论,有人声称他们现在正在修补它。

    讨论链接: https://chat.hyperledger.org/channel/fabric?msg=9FYkjy8SLyB6bBN2C

    更新:据称,此 PR 将修复依赖问题: https://github.com/hyperledger/fabric-chaincode-node/pull/174/files

    Update2: Pr 好像已经合并了。我设法在不涉及任何依赖项的情况下启动了一个新的 Fabric 网络。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-05
      • 1970-01-01
      相关资源
      最近更新 更多