Hyperledger fabric 2.1 链码安装

Hyperledger fabric 2.1 chaincode installation

我正在尝试使用最新的链代码生命周期在我的对等节点中安装节点链代码。但是当我尝试安装 chaincode

时出现以下错误
 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 Rocketchat 中正在进行讨论,有人声称他们现在正在修补它。

A​​ link 讨论: https://chat.hyperledger.org/channel/fabric?msg=9FYkjy8SLyB6bBN2C

更新:据说这个PR会解决依赖问题: https://github.com/hyperledger/fabric-chaincode-node/pull/174/files

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