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``
运行成功
运行成功