Refactor installs for nvm