关于go语言下载“https://proxy.golang.org/相关包报错问题

一、问题描述

在用windows10搭建tendermint框架时报错“go: github.com/BurntSushi/[email protected]: Get "https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod": dial tcp 172.217.27.145: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://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod包超时了。

二、解决方法

通过网上查找资料,了解可能是需要终端打开代理,因此执行下面两个指令就可以打开:

go env -w GO111MODULE=on

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

成功界面:

关于go语言下载“https://proxy.golang.org/相关包报错问题_第1张图片

最终还是把tendermint框架搭建成功了。

你可能感兴趣的:(tendermint,区块链)