go: could not create module cache: stat /root/go-workspace/pkg/mod: permission denied #3860
Replies: 3 comments
-
That error, Just in case, make sure your GOPATH is in your $PATH. That might help, too. |
Beta Was this translation helpful? Give feedback.
-
@hoainam125 I've just tried with kali both in the docker and virtual box, and the default permissions for |
Beta Was this translation helpful? Give feedback.
-
You can use this: go env -w GOMODCACHE=${PWD}/CACHE_EXAMPLE/modcache GOCACHE=${PWD)/CACHE_EXAMPLE/buildcache You can change the folder "CACHE_EXAMPLE" for other folder. |
Beta Was this translation helpful? Give feedback.
-
I Have got this issue when running
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
commandI have downloaded latest Go version for Linux
"
┌──(kali㉿kali)-[~] └─$ go version go version go1.20.5 linux/amd64
Please help
Beta Was this translation helpful? Give feedback.
All reactions