riywo / ndenv

node.js version manager based on rbenv
304 stars 31 forks source link

Please add the shims in the $PATH #6

Open andreicristianpetcu opened 9 years ago

andreicristianpetcu commented 9 years ago

Hello,

With the current ndenv code and documentation global modules like bower or grunt do not work. The shims are not in the $PATH.

Please add the shims in the $PATH in one way or another. The simplest way is just to change the installation instructions and add this part

$ echo 'export PATH="$HOME/.ndenv/bin:$HOME/.ndenv/shims:$PATH"' >> ~/.bash_profile

The more complicated way is to make the ndenv bin stay in the same folder as the shims.

I fixed this myself for my own dotfiles with the first sollution and it works but other people might not figure this out and it might be unclear why ndenv does not work for them.

Thank you for building this tool :D

jwhitley commented 9 years ago

Motion seconded re: docs update. I spent a few minutes spinning not finding expected bits (e.g. npm) until I realized that I was missing something and came back here.