异常一

Go: github.com/go-cmd/cmd@v1.2.0 GET "https://proxy.golang.org/github.com/go-cmd/cmd/@v/v1.2.0.mod" ... because connected host has failed to respond.


原因分析

网络访问被墙无法下载go-cmd包源码



解决方案

使用PowerShell输入 $env:GOPROXY = "https://goproxy.io" 这一步是通过Go Module设置GOPROXY代理下载被墙的源码包,当然只支持Go 1.11版本及以上。 


异常二

 connectex: An attempt was made to access a socket in a way forbidden by its access permissions.

exit status 1


原因分析

访问请求被拦截


解决方案

关闭WFC防火墙