can't load package: cannot find module providing package 错误解决

go: finding module for package github.com/fabric-sdk-sample/fabric-sdk-go/sync-module
can't load package: cannot find module providing package github.com/fabric-sdk-sample/fabric-sdk-go/sync-module: module github.com/fabric-sdk-sample/fabric-sdk-go/sync-module: reading https://goproxy.io/github.com/fabric-sdk-sample/fabric-sdk-go/sync-module/@v/list: 404 Not Found
	server response:
	not found: go list -m -json -versions github.com/fabric-sdk-sample/fabric-sdk-go/sync-module@latest
	: go list -m github.com/fabric-sdk-sample/fabric-sdk-go/sync-module: git ls-remote -q origin in /data1/golang/pkg/mod/cache/vcs/fbfb575a77dae5efab11f42de8bf9033b27b12316be388280458363cc4daf10a: exit status 128:
		fatal: could not read Username for 'https://github.com': terminal prompts disabled
	If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.

错误信息

解决方法是将GO111MODULE 设置为 off

你可能感兴趣的:(can't load package: cannot find module providing package 错误解决)