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
执行成功如下

在尝试使用goinstall命令安装github.com/mattn/goreman最新版本时遇到了连接拒绝的错误。问题的解决方案是手动下载和安装包,包括克隆GitHub仓库到GOPATH,然后在本地执行goinstall安装。如果无法直接克隆,可能需要使用代理或科学上网工具。

被折叠的 条评论
为什么被折叠?



