1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-03 13:11:42 +02:00
kratos/doc/wiki-cn/FAQ.md

22 lines
730 B
Markdown
Raw Permalink Normal View History

2019-08-01 13:00:20 +08:00
# 安装失败,提示go mod 错误
执行
```shell
2020-03-28 18:02:25 +08:00
go get -u github.com/go-kratos/kratos/tool/kratos
```
出现以下错误时
```shell
go: github.com/prometheus/client_model@v0.0.0-20190220174349-fd36f4220a90: parsing go.mod: missing module line
go: github.com/remyoudompheng/bigfft@v0.0.0-20190806203942-babf20351dd7e3ac320adedbbe5eb311aec8763c: parsing go.mod: missing module line
```
2019-09-04 11:52:16 +08:00
如果你使用了https://goproxy.io/ 代理,那你要使用其他代理来替换它,然后删除GOPATH目录下的mod缓存文件夹(`go clean --modcache`),然后重新执行安装命令
2019-08-01 13:00:20 +08:00
代理列表
```
export GOPROXY=https://mirrors.aliyun.com/goproxy/
export GOPROXY=https://goproxy.cn/
export GOPROXY=https://goproxy.io/
```