Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
`nvm update`? #127
Can we have some functionality in the way of updating nvm? For example, I would prefer to run
Update RVM to latest development version:
or to stable version:
update rubygems to latest available:
or just a version:
Well oddly it does seem a bit complex. Every time I attempt to update
Exactly as noted above. I had installed it via
referenced this issue
Jul 14, 2014
I modified the command (the above one wasn't really working), now I use the following script to update nvm:
#!/bin/bash set -u git -C "$NVM_DIR" fetch --tags TAG=$(git -C "$NVM_DIR" describe --tags `git -C "$NVM_DIR" rev-list --tags --max-count=1`) echo "Checking out tag $TAG..." git -C "$NVM_DIR" checkout "$TAG" . "$NVM_DIR/nvm.sh"
EDIT: I updated the script to be safer.