creationix/nvm — pull request #104 by prozacgod (2012-02-24 17:36:29+00:00)
Title: NVM "need curl to proceed"

I've used nvm easily with most of my existing systems, but a newly installed mint system did not have curl installed by default.

nvm did not function, and provided the error "need curl to proceed", I installed curl, and nvm refused to function - even curl provided the same error, which was rather odd. Eventually i realized that nvm creates a curl function in the "global" shell environment, and when sourced from .bashrc it overwrites the existing (if it exists) curl function, preventing a subsequently installed curl from functioning until the bash shell is restarted

This behaviour could be very confusing to those not familiar with bash / sourcing behavior. (like myself :P)

and since curl is only required for those downloading tarballs, I moved it into the install branch of the nvm function.

If this is not an adequate solution, then let me know and we can brainstorm on it a bit.