cannot download, $GOPATH not set

前端 未结 15 2178
闹比i
闹比i 2020-11-29 17:00

I want to install json2csv using go get github.com/jehiah/json2csv but I receive this error:

package github.com/jehiah/json2csv: cannot download         


        
15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 17:37

    Your $GOROOT should not be set up. You $GOPATH should be set to $HOME/go by typing export $GOPATH=$HOME/go

    Please type export GOROOT="" to fix your problem.

提交回复
热议问题