Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11871

golang mkdir /usr/local/go/pkg/mod permission denied

$
0
0

OS: Windows 11 WSL2;IDE: Goland Latest

I am trying to open my IDE Goland, but I get this error when the IDE tries to index my project.

warning: GOPATH set to GOROOT (/usr/local/go) has no effectgo: mkdir /usr/local/go/pkg/mod: permission deniedgo: github.com/MyCompany/common-backend@v1.0.56: mkdir /usr/local/go/pkg/mod: permission denied

though, I already set my go like this

 export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$PATH:/usr/local/go/bin

is that anything I miss for my WSL for Go Path?


Viewing all articles
Browse latest Browse all 11871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>