您当前的位置: 首页 >  ar

阿雄不会写代码

暂无认证

  • 4浏览

    0关注

    53博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

遇到go: go.mod file not found in current directory or any parent directory.

阿雄不会写代码 发布时间:2022-08-24 15:31:35 ,浏览量:4

go搭建bee或者其他东西的时候遇到问题

go: go.mod file not found in current directory or any parent directory.         'go get' is no longer supported outside a module.         To build and install a command, use 'go install' with a version,         like 'go install example.com/cmd@latest'         For more information, see https://golang.org/doc/go-get-install-deprecation         or run 'go help get' or 'go help install'.

这个问题解决方式

输入:

  1. go env -w GO111MODULE=on

  2. go env -w GOPROXY=https://goproxy.cn,direct

之后在进行命令就可以啦!

关注
打赏
1663833680
查看更多评论
立即登录/注册

微信扫码登录

0.0379s