作曲家版本:0.19.0
Mac OS
步骤:
fabric-tools
./ startFabric.sh
docker ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 504b51337d01 hyperledger/fabric-peer:x86_64-1.1.0 "peer node start" 17 minutes ago Up 17 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com db82f914091d hyperledger/fabric-orderer:x86_64-1.1.0 "orderer" 17 minutes ago Up 17 minutes 0.0.0.0:7050->7050/tcp orderer.example.com efcdff601fec hyperledger/fabric-couchdb:x86_64-0.4.6 "tini -- /docker-ent…" 17 minutes ago Up 17 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb fda7819674bd hyperledger/fabric-ca:x86_64-1.1.0 "sh -c 'fabric-ca-se…" 17 minutes ago Up 17 minutes 0.0.0.0:7054->7054/tcp ca.org1.example.com
收到错误
✖ Starting business network definition. This may take a minute... Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: cannot get package for chaincode (basic-sample:0.0.1)) Command failed
重试
使用npmrcFile:
npmConfig.txt
的内容:
registry=https://registry.npm.taobao.org
仍然失败。
答案 0 :(得分:0)
我认为这与GitHub上的Composer prpoject上的问题记录完全相同。
https://github.com/hyperledger/composer/issues/3794
对此的简短回答是start命令上的网络名称错误。网络名称可能是基本样本网络。
检查名称和版本的方法是发出以下命令:
composer archive list -a basic-sample.bna