tj/node-prune

cannot install

worst-developer opened this issue · 4 comments

I am installing from root directory.Using provided command:
go get github.com/tj/node-prune/cmd/node-prune

It gives me this error:
go/src/github.com/tj/node-prune/cmd/node-prune/main.go:50: time.Since(start).Round undefined (type time.Duration has no field or method Round)

tj commented

check out the Releases tab for binaries, or make sure you're on Go 1.9

update to newest version helped, but still it does not working. Where is I need to install it? I'm trying to it in root directory of pc, seems like it was installed but when I'm typing node-prude it says: unknown command

tj commented

make sure $GOPATH/bin is in your $PATH, should fix that issue. or if you use the binaries just cp to /usr/local/bin or similar

set $GOPATH to $HOME/go, helped
in ~/.bash_profile, add this line
export GOPATH="$HOME/go"