Я пытаюсь создать интеллектуальный контракт papercontract.js
, как указано в https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html внутри контейнера docker, с помощью следующей команды:
docker exec cliMagnetoCorp peer chaincode instantiate -n papercontract -v 0 -l node -c '{"Args":["org.papernet.commercialpaper:instantiate"]}' -C mychannel -P "AND ('Org1MSP.member')"
Однако вышеприведенное Команда всегда возвращает следующую ошибку
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "
> @ampretia/x509@0.4.0 install /chaincode/output/node_modules/@ampretia/x509
> node-gyp rebuild
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: unable to verify the first certificate
gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1116:38)
gyp ERR! stack at emitNone (events.js:106:13)
gyp ERR! stack at TLSSocket.emit (events.js:208:7)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:643:8)
gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38)
gyp ERR! System Linux 5.3.0-40-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /chaincode/output/node_modules/@ampretia/x509
gyp ERR! node -v v8.16.1
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok
npm WARN papercontract@0.0.3 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ampretia/x509@0.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ampretia/x509@0.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-10T09_26_09_606Z-debug.log
Любая помощь будет принята с благодарностью. Спасибо!