ERROR MESSAGE: "go install: no install location for directory ... outside GOPATH"

 

 

export GOPATH=~/go

mkdir ~/go/bin

export GOBIN=$GOPATH/bin

 

macos - Go install fails with error: no install location for directory xxx outside GOPATH - Stack Overflow

 

Go install fails with error: no install location for directory xxx outside GOPATH

~/src/go-statsd-client> echo $GOPATH /Users/me/gopath ~/src/go-statsd-client> echo $GOROOT /usr/local/Cellar/go/1.1.1\ ~/src/go-statsd-client> go install go install: no install location for

stackoverflow.com

 

'프로그래밍 언어 > Go' 카테고리의 다른 글

How to Install Go Lang on Ubuntu 16.04  (0) 2020.12.29
undefined: http.ErrUseLastResponse  (0) 2020.12.29

+ Recent posts