[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
Provenance
- Commit
9972de6- Tree
c0d8edc- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
45e4387
1 file changed+15 added−15 removed
modified:README.markdown+15 added-15 removed
47 unmodified lines48 49 You 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.51 52-To download, compile, and install the latest v0.10.x release of node, do this:52+To download, compile, and install the latest v5.0.x release of node, do this:53 54- nvm install 0.1054+ nvm install 5.055 56 And then in any new shell just use the installed version:57 58- nvm use 0.1058+ nvm use 5.059 60 Or you can just run it:61 62- nvm run 0.10 --version62+ nvm run 5.0 --version63 64 Or, you can run any arbitrary command in a subshell with the desired version of node:65 66- nvm exec 0.10 node --version66+ nvm exec 4.2 node --version67 68 You can also get the path to the executable to where it was installed:69 70- nvm which 0.1070+ nvm which 5.071 72-In place of a version pointer like "0.10", you can use the special default aliases "stable" and "unstable":72+In 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:73 74- 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).78 79 If you want to install a new version of Node.js and migrate npm packages from a previous version:80 81 nvm install node --reinstall-packages-from=node1 unmodified line83 This 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.84 85 You can also install and migrate npm packages from specific versions of Node like this:86 87- 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=iojs89 90 If you want to install [io.js](https://github.com/iojs/io.js/):91 92 nvm install iojs27 unmodified lines120 121 To use a mirror of the node binaries, set `$NVM_NODEJS_ORG_MIRROR`:122 123 export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist124- nvm install 0.10124+ nvm install node125 126- NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 0.10126+ NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 4.2127 128 To use a mirror of the iojs binaries, set `$NVM_IOJS_ORG_MIRROR`:129 130 export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist117 unmodified lines