解决go install github.com/mattn/goreman@latest安装报错

go install github.com/mattn/goreman@latest

报错:

[root@localhost ~]# go install github.com/mattn/goreman@latest
go: github.com/mattn/goreman@latest: module github.com/mattn/goreman: Get "https://proxy.golang.org/github.com/mattn/goreman/@v/list": dial tcp 142.251.42.241:443: connect: connection refused

解决方法如下:

手动下载包安装,如果clone不了,只能科学上网了
mkdir -p $GOPATH/src/github.com/mattn
cd $GOPATH/src/github.com/mattn
git clone https://github.com/mattn/goreman.git
cd $GOPATH/src/github.com/mattn/goreman
go install

执行成功如下
解决go install github.com/mattn/goreman@latest安装报错_第1张图片

你可能感兴趣的:(go,golang,github,开发语言)