beego 脚手架 安装错误提示

错误提示信息:

# github.com/gadelkareem/delve/service/debugger

../github.com/gadelkareem/delve/service/debugger/debugger.go:129:3: cannot use logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value
github.com/gadelkareem/delve/service/rpccommon
../github.com/gadelkareem/delve/service/rpccommon/server.go:83:3: cannot use logger (type *"github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type *"github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value

这是由于没有配置GO111MODULE的设置(及GOPROXY)

运行

go env -w GOPROXY=https://goproxy.io,direct
go env -w GO111MODULE=on

beego 脚手架 安装错误提示_第1张图片

配置好之后再安装

go get -u github.com/beego/bee 

安装完成运行bee

如果出现bee'不是内部或外部命令,也不是可运行的程序 

运行go env 命令,查看当前Gopath 目录

beego 脚手架 安装错误提示_第2张图片

将GoPath目录下

在bin目录下找到bee.exe文件

将目录加入到系统环境变量中
D:\go\bin

这时候再运行bee 就可以了

beego 脚手架 安装错误提示_第3张图片

你可能感兴趣的:(golang)