|
|
@ -34,29 +34,33 @@ Often I also put in a line to use a specific version of node. |
|
|
|
|
|
|
|
|
|
|
|
## Usage |
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
|
|
To download, compile, and install the v0.6.14 release of node, do this: |
|
|
|
To download, compile, and install the latest v0.8.x release of node, do this: |
|
|
|
|
|
|
|
|
|
|
|
nvm install 0.6.14 |
|
|
|
nvm install 0.8 |
|
|
|
|
|
|
|
|
|
|
|
And then in any new shell just use the installed version: |
|
|
|
And then in any new shell just use the installed version: |
|
|
|
|
|
|
|
|
|
|
|
nvm use 0.6.14 |
|
|
|
nvm use 0.8 |
|
|
|
|
|
|
|
|
|
|
|
Or you can just run it: |
|
|
|
Or you can just run it: |
|
|
|
|
|
|
|
|
|
|
|
nvm run 0.6.14 |
|
|
|
nvm run 0.8 |
|
|
|
|
|
|
|
|
|
|
|
If you want to see what versions are available: |
|
|
|
If you want to see what versions are installed: |
|
|
|
|
|
|
|
|
|
|
|
nvm ls |
|
|
|
nvm ls |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you want to see what versions are available to install: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nvm ls-remote |
|
|
|
|
|
|
|
|
|
|
|
To restore your PATH, you can deactivate it. |
|
|
|
To restore your PATH, you can deactivate it. |
|
|
|
|
|
|
|
|
|
|
|
nvm deactivate |
|
|
|
nvm deactivate |
|
|
|
|
|
|
|
|
|
|
|
To set a default Node version to be used in any new shell, use the alias 'default': |
|
|
|
To set a default Node version to be used in any new shell, use the alias 'default': |
|
|
|
|
|
|
|
|
|
|
|
nvm alias default 0.6 |
|
|
|
nvm alias default 0.8 |
|
|
|
|
|
|
|
|
|
|
|
## License |
|
|
|
## License |
|
|
|
|
|
|
|
|
|
|
|