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/[email protected]: 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

你可能感兴趣的:(failed to normalize chaincode path: 'go list' failed with: go)