Skip to content
Myr

[Docs] update version numbers in the readme; add default alias info

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 45e4387 · Browse files · 1 file+15 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−15 removed

  • other:+15 added−15 removed

1 file+15 added−15 removed

modified:README.markdown+15 added-15 removed
47 unmodified lines
4849You can create an `.nvmrc` file containing version number in the project root directory (or any parent directory).50`nvm use`, `nvm install`, `nvm exec`, `nvm run`, and `nvm which` will all respect an `.nvmrc` file when a version is not supplied.5152To download, compile, and install the latest v0.10.x release of node, do this:52To download, compile, and install the latest v5.0.x release of node, do this:5354 nvm install 0.1054 nvm install 5.05556And then in any new shell just use the installed version:5758 nvm use 0.1058 nvm use 5.05960Or you can just run it:6162 nvm run 0.10 --version62 nvm run 5.0 --version6364Or, you can run any arbitrary command in a subshell with the desired version of node:6566 nvm exec 0.10 node --version66 nvm exec 4.2 node --version6768You can also get the path to the executable to where it was installed:6970 nvm which 0.1070 nvm which 5.07172In place of a version pointer like "0.10", you can use the special default aliases "stable" and "unstable":72In place of a version pointer like "0.10" or "5.0" or "4.2.1", you can use the following special default aliases with `nvm install`, `nvm use`, `nvm run`, `nvm exec`, `nvm which`, etc:7374 nvm install stable75 nvm install unstable76 nvm use stable77 nvm run unstable --version74 - `node`: this installs the latest version of [`node`](https://nodejs.org/en/)75 - `iojs`: this installs the latest version of [`io.js`](https://iojs.org/en/)76 - `stable`: this alias is deprecated, and only truly applies to `node` `v0.12` and earlier. Currently, this is an alias for `node`.77 - `unstable`: this alias points to `node` `v0.11` - the last "unstable" node release, since post-1.0, all node versions are stable. (in semver, versions communicate breakage, not stability).7879If you want to install a new version of Node.js and migrate npm packages from a previous version:8081 nvm install node --reinstall-packages-from=node
1 unmodified line
83This will first use "nvm version node" to identify the current version you're migrating packages from. Then it resolves the new version to install from the remote server and installs it. Lastly, it runs "nvm reinstall-packages" to reinstall the npm packages from your prior version of Node to the new one.8485You can also install and migrate npm packages from specific versions of Node like this:8687 nvm install v0.10.40 --reinstall-packages-from=0.10.3988 nvm install v0.12.7 --reinstall-packages-from=0.12.687 nvm install v5.0 --reinstall-packages-from=4.288 nvm install v4.2 --reinstall-packages-from=iojs8990If you want to install [io.js](https://github.com/iojs/io.js/):9192 nvm install iojs
27 unmodified lines
120121To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`:122123 export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist124 nvm install 0.10124 nvm install node125126 NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 0.10126 NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 4.2127128To use a mirror of the iojs binaries, set `$NVM_IOJS_ORG_MIRROR`:129130 export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
117 unmodified lines