安装iris的时候出错

C:\Users\Administrator>go get -u github.com/kataras/iris
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/kataras/iris: exec: "git": executable file not found in %PATH
%

按照提示的意思是,我的git没有配置环境变量

实际上我新装的系统未安装git

Windows下安装很容易,直接next即可

安装好后配置环境变量

记得出现打开一个cmd进行测试,不然配置的环境变量不会生效

重新执行go get -u github.com/kataras/iris

等待一会儿安装好后

找到安装的文件,拷贝到Go安装目录下的src(E:\Go\src)

安装iris出现“go: missing Git command.”

 

安装iris出现“go: missing Git command.” 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2021-05-10
  • 2021-10-14
  • 2021-09-27
  • 2021-07-28
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案