failed to normalize chaincode path: 'go list' failed with: go

在运行./network.sh deployCC是出现如下错误:

Error: failed to normalize chaincode path: 'go list' failed with: go: github.com/golang/protobuf@v1.3.2: Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.3.2.mod": dial tcp 216.58.200.49:443: i/o timeout: exit status 1
Chaincode packaging on peer0.org1 has failed
Deploying chaincode failed

主要是没有将go语言的源换成国内的,可以使用一下方法解决:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

posted @ 2020-11-27 16:47  沐沐子枫  阅读(778)  评论(0编辑  收藏  举报