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
Comments
This comment has been minimized.
This comment has been minimized.
I'd rather not do this. It will cause more complexities and problems than good. Is it so hard to |
creationix
closed this
Aug 8, 2012
This comment has been minimized.
This comment has been minimized.
Well oddly it does seem a bit complex. Every time I attempt to update |
This comment has been minimized.
This comment has been minimized.
@ylluminate how do you update? And what are the problems you run into? |
This comment has been minimized.
This comment has been minimized.
Exactly as noted above. I had installed it via |
ljharb
referenced this issue
Jul 14, 2014
Open
Create "official" formula for installing nvm using Homebrew #469
This comment has been minimized.
This comment has been minimized.
Too fragile if you ask me. |
This comment has been minimized.
This comment has been minimized.
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. |
ljharb
reopened this
Jul 19, 2014
This comment has been minimized.
This comment has been minimized.
xpepermint
commented
Jul 24, 2014
+1 for the @ylluminate's proposal |
This comment has been minimized.
This comment has been minimized.
Duplicate of #400. |
ljharb
closed this
Sep 20, 2014
This comment has been minimized.
This comment has been minimized.
gabamnml
commented
Oct 2, 2014
Would be good to implement as native command bash script that suggested by @mzgol |
ylluminate commentedAug 8, 2012
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: