-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvm update
?
#127
Comments
I'd rather not do this. It will cause more complexities and problems than good. Is it so hard to |
Well oddly it does seem a bit complex. Every time I attempt to update |
@ylluminate how do you update? And what are the problems you run into? |
Exactly as noted above. I had installed it via |
Too fragile if you ask me. |
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. |
+1 for the @ylluminate's proposal |
Duplicate of #400. |
Would be good to implement as native command bash script that suggested by @mzgol |
Can we have some functionality in the way of updating nvm? For example, I would prefer to run
nvm system update
or perhaps howrvm
works instead of runninggit pull
within ~/.nvm:Update RVM to latest development version:
or to stable version:
update rubygems to latest available:
or just a version:
The text was updated successfully, but these errors were encountered: