diff --git a/README.markdown b/README.markdown index 972beb1..20f0f43 100644 --- a/README.markdown +++ b/README.markdown @@ -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/): diff --git a/nvm.sh b/nvm.sh index e43aa61..942f799 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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] Download and install a , [-s] from source. Uses .nvmrc if available' + nvm_echo ' --copy-packages-from= When installing, copy packages installed from ' nvm_echo ' --reinstall-packages-from= When installing, reinstall packages installed in ' nvm_echo ' --lts When installing, only select from LTS (long-term support) versions' nvm_echo ' --lts= When installing, only select from versions for a specific LTS line'