DEV Community

Discussion on: This website is open source

Collapse
 
ikemkrueger profile image
Ikem Krueger

I skimmed over the README.md of rubenv and nodenv and still don't know what they are good for. For what do you use them?

Collapse
 
joshcheek profile image
Josh Cheek • Edited

They're for setting your shell up so that when you type ruby or node, you get the right version of Ruby / Node. Eg on my current machine, I have: the system Ruby and 4 other versions. It becomes important when you need a specific version (eg b/c you use some recent feature or are avoiding some breaking change) or when you start using it for serious development (because you'll want to install packages without needing root permissions). If you're familiar with Python, both Python 2 and Python 3 are heavily used still, so it would be like switching out which version python mapped to (eg pyenv and virtualenv). Or if you've used xcode-select, it's like that.