This commit is contained in:
Peter Dave Hello 2017-04-18 14:06:41 +00:00 committed by GitHub
commit 9c41ed0b29
2 changed files with 7 additions and 0 deletions

View File

@ -228,6 +228,12 @@ nvm install 6 --reinstall-packages-from=5
nvm install v4.2 --reinstall-packages-from=iojs
```
If you want to simply copy t he installed packages from specific versions of Node, try `--copy-packages-from` instead of `--reinstall-packages-from` like this:
```sh
nvm install 6 --copy-packages-from=5
```
### io.js
If you want to install [io.js](https://github.com/iojs/io.js/):

1
nvm.sh
View File

@ -2191,6 +2191,7 @@ nvm() {
nvm_echo ' nvm --help Show this message'
nvm_echo ' nvm --version Print out the latest released version of nvm'
nvm_echo ' nvm install [-s] <version> Download and install a <version>, [-s] from source. Uses .nvmrc if available'
nvm_echo ' --copy-packages-from=<version> When installing, copy packages installed from <node|iojs|node version number>'
nvm_echo ' --reinstall-packages-from=<version> When installing, reinstall packages installed in <node|iojs|node version number>'
nvm_echo ' --lts When installing, only select from LTS (long-term support) versions'
nvm_echo ' --lts=<LTS name> When installing, only select from versions for a specific LTS line'