mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-21 15:54:53 +00:00
Remove clone and update, these are better done by hand, add listlibs and a way to use the latest stable version
This commit is contained in:
@@ -8,25 +8,24 @@ To install create a folder somewhere in your filesystem with the "`nvm.sh`" file
|
||||
|
||||
Or if you have `git` installed, then just clone it:
|
||||
|
||||
git clone git://gist.github.com/367305.git ~/.nvm
|
||||
git clone git://github.com/creationix/nvm.git ~/.nvm
|
||||
|
||||
Then add three lines to your bash profile:
|
||||
Then add two lines to your bash profile:
|
||||
|
||||
NVM_DIR=$HOME/.nvm
|
||||
. $NVM_DIR/nvm.sh
|
||||
nvm use v0.1.91
|
||||
nvm use
|
||||
|
||||
The first line tells your system where NVM is installed, you should already have nvm.sh there. The second line loads the nvm function into your bash shell so that it's available as a command. The third line sets your default node version.
|
||||
The first line loads the nvm function into your bash shell so that it's available as a command. The second line sets your default node version to the latest released version.
|
||||
|
||||
## Usage
|
||||
|
||||
To download, install, and use the v0.1.91 release of node do this:
|
||||
To download, install, and use the v0.1.94 release of node do this:
|
||||
|
||||
nvm install v0.1.91
|
||||
nvm install v0.1.94
|
||||
|
||||
And then in any new shell just use the installed version:
|
||||
|
||||
nvm use v0.1.91
|
||||
nvm use v0.1.94
|
||||
|
||||
If you want to track HEAD then use the clone command:
|
||||
|
||||
|
Reference in New Issue
Block a user