tj / node-prune

Remove unnecessary files from node_modules (.md, .ts, ...)
MIT License
4.4k stars 130 forks source link

cannot install #35

Closed worst-developer closed 6 years ago

worst-developer commented 6 years ago

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 6 years ago

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

worst-developer commented 6 years ago

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 6 years ago

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

worst-developer commented 6 years ago

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