安装beego报错 go get: module github.combeegobee: Get “https:proxy.golang.orggithub.combeegobee

安装beego报错 go get: module github.combeegobee: Get “https:proxy.golang.orggithub.combeegobee,第1张

今天在安装beego的时候,为了方便的生成框架,输入go get -u -v github.com/beego/bee,如下图,报错信息如下:

go get: module github.com/beego/bee: Get "https://proxy.golang.org/github.com/beego/bee/@v/list": dial tcp 142.251.42.241:443: connectex: A connection attempt
failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

解决办法:

设置代理地址: https://goproxy.cn

运行命令即可:

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


然后在运行go get 就可以正常下载了。

顺带一提:如果安装的速度过慢,可尝试以下办法:

修改本机hosts文件,添加下面2行代码即可。

140.82.114.3 github.com
199.232.5.194 github.global.ssl.fastly.net

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/langs/996134.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-21
下一篇2022-05-21

发表评论

登录后才能评论

评论列表(0条)

    保存