tj / node-prune

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

node-prune commando not found with go path set #14

Closed alejandrosanabriav closed 6 years ago

alejandrosanabriav commented 6 years ago

Hi TJ, I have installed already go and I export the path to, go bin but node prune isn't on my shell yet.

export PATH=$PATH:$GOROOT/bin:$GOPATH/bin 

so what more I have to do?

Thanks.

appleboy commented 6 years ago
  1. add the following to your .bashrc
PATH=$PATH:$GOROOT/bin:$GOPATH/bin 
  1. install node-prune with go command
$ go get -u github.com/tj/node-prune

you can find the node-prune file in $GOPATH/bin folder.

alejandrosanabriav commented 6 years ago

@appleboy thanks but doesn't works for me :( with zshrc

appleboy commented 6 years ago

@developersoul I forked this repository and release all binary for all arch. You can download the binary according to your OS version with the following link.

https://github.com/appleboy/node-prune/releases/tag/1.0.0

jozsefsallai commented 6 years ago

Does the executable file appear if you run ls $GOROOT/bin? You should also make sure that you have permission to execute the file.

iwestlin commented 6 years ago

Encountered same issue. Are you using go version go1.9.2 darwin/amd64? If so, add PATH="$PATH:$HOME/go/bin" to ~/.zshrc then source it.

alejandrosanabriav commented 6 years ago

It works, thanks @iwestlin