mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-07-19 21:38:24 +08:00
Update readme and comment
This commit is contained in:
+4
-4
@@ -19,13 +19,13 @@ Often I also put in a line to use a specific version of node.
|
||||
|
||||
## Usage
|
||||
|
||||
To download, compile, and install the v0.2.5 release of node, do this:
|
||||
To download, compile, and install the v0.4.1 release of node, do this:
|
||||
|
||||
nvm install v0.2.5
|
||||
nvm install v0.4.1
|
||||
|
||||
And then in any new shell just use the installed version:
|
||||
|
||||
nvm use v0.2.5
|
||||
nvm use v0.4.1
|
||||
|
||||
If you want to see what versions are available:
|
||||
|
||||
@@ -37,5 +37,5 @@ To restore your PATH, you can deactivate it.
|
||||
|
||||
To set a default Node version to be used in any new shell, use the alias 'default':
|
||||
|
||||
nvm alias default v0.2.5
|
||||
nvm alias default v0.4.1
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Implemented by Tim Caswell <tim@creationix.com>
|
||||
# with much bash help from Matthew Ranney
|
||||
|
||||
# Auto detect the NVM_DIR using magic bash 3.x stuff
|
||||
# Auto detect the NVM_DIR
|
||||
if [ ! -d "$NVM_DIR" ]; then
|
||||
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user