Installing node. js and Io.js using NVM

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.