zkar
zkar copied to clipboard
运行报错
报错如下
go: github.com/cpuguy83/go-md2man/[email protected]: Get "https://proxy.golang.org/github.com/cpuguy83/go-md2man/v2/@v/v2.0.0.mod": dial tcp 172.217.163.49:443: i/o timeout
感谢P牛的工具, 问题已解决, 给后来的小伙伴借鉴 运行之前需要添加一个代理, 代理的官网: https://goproxy.io/ 添加方式如下:
Bash (Linux or macOS)
Set the GOPROXY environment variable
export GOPROXY=https://goproxy.io,direct
Set environment variable allow bypassing the proxy for specified repos (optional)
export GOPRIVATE=git.mycompany.com,github.com/my/private
PowerShell (Windows)
Set the GOPROXY environment variable
$env:GOPROXY = "https://goproxy.io,direct"
Set environment variable allow bypassing the proxy for specified repos (optional)
$env:GOPRIVATE = "git.mycompany.com,github.com/my/private"