Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行报错 #8

Open
m4ra7h0n opened this issue Feb 11, 2023 · 0 comments
Open

运行报错 #8

m4ra7h0n opened this issue Feb 11, 2023 · 0 comments

Comments

@m4ra7h0n
Copy link

m4ra7h0n commented Feb 11, 2023

报错如下
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"

@m4ra7h0n m4ra7h0n changed the title 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 运行报错 Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant