飞克网

标题: go 解决no required module provides package xxx: go.mod file not found in curr... [打印本页]

作者: admin    时间: 2022-1-20 16:46
标题: go 解决no required module provides package xxx: go.mod file not found in curr...
更新后,运行程序就报这个错
no required module provides package xxx: go.mod file not found in current directory or any parent directory; see 'go help modules'

用这个命令解决
go env -w GO111MODULE=auto



引用:https://www.cnblogs.com/l199616j/p/15269281.html






欢迎光临 飞克网 (http://feikechina.com/) Powered by Discuz! X3.2