美文网首页
Hyperledger Fabric 2.0 :error ge

Hyperledger Fabric 2.0 :error ge

作者: 逍遥子_ | 来源:发表于2020-04-07 14:05 被阅读0次

first network

问题描述

  • 执行‘./byfn.sh up’报错
Error: error getting chaincode bytes: failed to calculate dependencies: incomplete package: github.com/hyperledger/fabric-chaincode-go/shim
!!!!!!!!!!!!!!! Chaincode packaging on peer0.org1 has failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

问题图片

链码安装失败
解决方法
  • 可能是golang的环境变量问题,执行'go env',可以看到GOPROXY的值
go env
GOPROXY
  • 执行以下命令后,再重新运行‘./byfn.sh up’即可成功
go env -w GOPROXY=https://goproxy.cn
export GOPROXY=https://goproxy.cn``

运行成功

运行成功

参考链接

https://www.cnblogs.com/zoujiaojiao/p/12606909.html

相关文章

网友评论

      本文标题:Hyperledger Fabric 2.0 :error ge

      本文链接:https://www.haomeiwen.com/subject/kftnphtx.html