Hyperledger Fabric由于互联网速度实例化超时,如何使用taobao.org npm image而不是Official image

问题描述

houyuqi @ ubuntu:〜/ fabric-samples / raft-4node-swarm $ sudo docker exec cli对等链代码实例化-o orderer.example.com:7050 --tls --cafile / opt / gopath / src / github。 com / hyperledger / fabric / peer / crypto / ordererOrganizations / example.com / orderers / orderer.example.com / msp / tlscacerts / tlsca.example.com-cert.pem -C mychannel -n xiot13 -v 1.0 -c'{ “ Args”:[“ org.xiotnet.xiotdata:instantiate”]}'-P“ AND('Org1MSP.peer','Org2MSP.peer')” -l节点 2020-08-22 03:02:51.094 UTC [chaincodeCmd] checkChaincodeCmdParams-> INFO 001使用认escc 2020-08-22 03:02:51.094 UTC [chaincodeCmd] checkChaincodeCmdParams-> INFO 002使用认vscc 错误:无法组装事务,错误的提案响应未成功,错误代码500,味精链码注册失败:错误启动容器:错误启动容器:无法生成特定于平台的docker构建:构建返回的错误:1“ npm WARN> [email protected]没有存储库字段。

npm ERR!网络超时时间:https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz

npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! /root/.npm/_logs/2020-08-22T03_05_22_721Z-debug.log “

首先,使用fabric-chaincode-node实现chaincode。 实例化可以在互联网速度很快的服务器上成功完成, 但是在本地虚拟机上,它总是失败。

我尝试另一种方法-通过以下命令将官方npm镜像替换为https://registry.npm.taobao.org: npm config set注册https://registry.npm.taobao.org

但是,构建映像仍使用官方https://registry.npmjs.org。 我可以使用https://registry.npm.taobao.org吗?

有人帮我,谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)