Source: Https://github.com/creationix/nvm#install-script
Brew Install NVM
SOURCE ...
echo "..." >> ~/.profile
NVM Install stable # installs the latest node. js
NVM Install IOJS # installs the latest io.js
Node Version Manager
Usage:
NVM help Show this message
NVM--version Print out the latest released version of NVM
NVM install [-S] <version> Download and install a <version>, [-S] from source. Uses. NVMRC if available
NVM Uninstall <version> Uninstall a version
NVM use <version> Modify PATH to use <version>. Uses. NVMRC if available
NVM run <version> [<args>] Run <version> with <args> as arguments. Uses. NVMRC if available for <version>
NVM current Display currently activated version
NVM LS List installed versions
NVM ls <version> List versions matching a given description
NVM ls-remote List Remote versions available for install
NVM deactivate Undo effects of ' NVM ' on the current shell
NVM alias [<pattern>] Show all aliases beginning with <pattern>
NVM alias <name> <version> Set an alias named <name> pointing to <version>
NVM unalias <name> Deletes the alias named <name>
NVM reinstall-packages <version> Reinstall Global ' NPM ' packages contained in <version> to current Versio N
NVM unload unload ' nvm ' from shell
NVM which [<version>] Display path to installed node version. Uses. NVMRC if available
Example:
NVM Install v0.10.32 Install a specific version number
NVM use 0.10 use the latest available 0.10.x release
NVM run 0.10.32 app.js run app.js using node v0.10.32
NVM exec 0.10.32 node app.js Run ' node App.js ' with the PATH pointing to node v0.10.32
NVM alias default 0.10.32 Set default node version on a shell
Note:
To remove, delete, or uninstall Nvm-just remove ~/.NVM, ~/.NPM, and ~/.bower folders
Installing node. js and Io.js using NVM