报错信息
今天在使用go编译EXE文件时,出现了以下报错提示,显示无法安装。查了一些资料后主要还是因为墙的原因,指定一下代理就可以解决。
go: github.com/logrusorgru/aurora@v2.0.3+incompatible……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.
配置代理
直接指定一个代理,这样就不需要翻墙了
go env -w GOSUMDB=off
go env -w GOPROXY=https://goproxy.cn,direct