美文网首页
no install location for director

no install location for director

作者: 柳正来 | 来源:发表于2018-09-30 16:40 被阅读173次

我确定我的GOPATH和GOBIN都设置正确, 但是go get ./...还是会有错误no install location for directory ... outside GOPATH. (此时必须sudo go get ./...因为没有权限)

最终发现是权限问题, 运行sudo chown -R $USER $GOPATH即可. (此时go get ./...即可, 因为权限已经满足).

相关文章

网友评论

      本文标题:no install location for director

      本文链接:https://www.haomeiwen.com/subject/lriwoftx.html