Problem-solving Windows installation Bee (hint error ... but was required as: github.com/derekparker/delve)

According to Beego official document: https: //beego.me/docs/install/bee.md
execute command to install:

go get github.com/beego/bee

It was found the following prompt error

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/[email protected]: parsing go.mod:
module declares its path as: github.com/go-delve/delve
but was required as: github.com/derekparker/delve

Check the current online have more of this solution:
1, the temporary closure of mod installed (it should be tried under the network reasons, it is difficult to move out the next, there is no use to continue, though it seems to bee this tool did not have time updated, however, you can still try this program, which can be downloaded to compile and install the latest version):

GO111MODULE = OFF && Go Export GET -u github.com/beego/bee
(Reference link: https: //blog.csdn.net/zhetmdoubeizhanyong/article/details/101050310)

Then think of just a tool, they do not have to recompile the installation and the like, there is also the official Github Issue feedback this issue, but it seems still not been resolved. However, we see the official had provided the main program compiled Release, try to be directly used enough, so with the following scheme.

solution:

  1. From the official Github download the latest version of the program corresponding to the system

Attach the official bee release V1.10.0 the windows x64 download link:
https://github.com/beego/bee/releases/download/v1.10.0/bee_1.10.0_windows_amd64.zip
Other versions:
https://github.com / beego / bee / releases

  1. Extract from the main bee

bee program

  1. Enter Go bin folder

General into the way Windows:
file manager address bar:

  • % GOPATH% \ bin

To enter
Here Insert Picture Description

  1. Copy the unzipped bee.exe to just open this folder (% GOPATH% \ bin), the results shown above
  2. carry out
  3. test

$ bee version
Here Insert Picture Description

This should be installed successfully.
Test functions are also normal.
Similarly other systems should also be compiled to official download of the main program, put the \% GOPATH% bin, you should be just fine, Bee that no other compiler tools Go directly dependent files directly to a single file compiled or can also take over with, it should be regarded as relatively easy.

tip

Windows users If this operation does not work, then, Path environment variables can check not included to go \ bin path, if not the next manually add GOPATH \ bin to the Path environment variable should be on it.

Published 18 original articles · won praise 8 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_20408397/article/details/104798781