Resolve 'bee' is not recognized as an internal or external command, operable program or batch file.

Insert image description here

Recently, I was learning the beego framework in go. After downloading the dependencies
Insert image description here
and executing bee new projectname, a problem arose:
Insert image description here
the online tutorial said that there was a lack of environment variables, and also said that you need to compile main.go in the src folder of beego.

After working for a long time, it all ended in failure;

The solution is:

go install  github.com/beego/bee/v2@master

implementbee version
Insert image description here

Finally, execute bee new hello

Insert image description here
problem solved;

Guess you like

Origin blog.csdn.net/weixin_54061333/article/details/132496364