Beego

Beego

go mod模式下安装bee工具出错

BeegoShadow 发表了文章 • 0 个评论 • 830 次浏览 • 2020-04-27 14:06 • 来自相关话题

 
安装bee工具的时候 go get -u github.com/beego/bee报错,具体错误如下
go get -u github.com/beego/bee
go: github.com/beego/bee imports
github.com/beego/bee/cmd imports
github.com/beego/bee/cmd/commands/dlv imports
github.com/derekparker/delve/service: github.com/derekparker/delve@v1.3.2: parsing go.mod:
module declares its path as: github.com/go-delve/delve
but was required as: github.com/derekparker/delve解决方案:
先把go mod给关闭了,再安装bee就可以了
# 关闭 go mod

# Go 1.13 及以上
go env -w GO111MODULE=off

# macOS 或 Linux
$ export GO111MODULE=off

# Windows
C:\> $env:GO111MODULE = "off"

# ********** 以下为开启go mod方式 **********

# Go 1.13 及以上(推荐)
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

# macOS 或 Linux
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

# Windows
C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn" 查看全部
 
安装bee工具的时候 go get -u github.com/beego/bee报错,具体错误如下
go get -u github.com/beego/bee
go: github.com/beego/bee imports
github.com/beego/bee/cmd imports
github.com/beego/bee/cmd/commands/dlv imports
github.com/derekparker/delve/service: github.com/derekparker/delve@v1.3.2: parsing go.mod:
module declares its path as: github.com/go-delve/delve
but was required as: github.com/derekparker/delve
解决方案:
先把go mod给关闭了,再安装bee就可以了
# 关闭 go mod

# Go 1.13 及以上
go env -w GO111MODULE=off

# macOS 或 Linux
$ export GO111MODULE=off

# Windows
C:\> $env:GO111MODULE = "off"

# ********** 以下为开启go mod方式 **********

# Go 1.13 及以上(推荐)
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

# macOS 或 Linux
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

# Windows
C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn"

go mod模式下安装bee工具出错

BeegoShadow 发表了文章 • 0 个评论 • 830 次浏览 • 2020-04-27 14:06 • 来自相关话题

 
安装bee工具的时候 go get -u github.com/beego/bee报错,具体错误如下
go get -u github.com/beego/bee
go: github.com/beego/bee imports
github.com/beego/bee/cmd imports
github.com/beego/bee/cmd/commands/dlv imports
github.com/derekparker/delve/service: github.com/derekparker/delve@v1.3.2: parsing go.mod:
module declares its path as: github.com/go-delve/delve
but was required as: github.com/derekparker/delve解决方案:
先把go mod给关闭了,再安装bee就可以了
# 关闭 go mod

# Go 1.13 及以上
go env -w GO111MODULE=off

# macOS 或 Linux
$ export GO111MODULE=off

# Windows
C:\> $env:GO111MODULE = "off"

# ********** 以下为开启go mod方式 **********

# Go 1.13 及以上(推荐)
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

# macOS 或 Linux
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

# Windows
C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn" 查看全部
 
安装bee工具的时候 go get -u github.com/beego/bee报错,具体错误如下
go get -u github.com/beego/bee
go: github.com/beego/bee imports
github.com/beego/bee/cmd imports
github.com/beego/bee/cmd/commands/dlv imports
github.com/derekparker/delve/service: github.com/derekparker/delve@v1.3.2: parsing go.mod:
module declares its path as: github.com/go-delve/delve
but was required as: github.com/derekparker/delve
解决方案:
先把go mod给关闭了,再安装bee就可以了
# 关闭 go mod

# Go 1.13 及以上
go env -w GO111MODULE=off

# macOS 或 Linux
$ export GO111MODULE=off

# Windows
C:\> $env:GO111MODULE = "off"

# ********** 以下为开启go mod方式 **********

# Go 1.13 及以上(推荐)
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct

# macOS 或 Linux
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.cn

# Windows
C:\> $env:GO111MODULE = "on"
C:\> $env:GOPROXY = "https://goproxy.cn"