Install node multi-version manager NVM, and NVM common commands

Source: Internet
Author: User
Tags install node

" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) " # # Install nvm$ brew Install  NVM

The shell uses zsh, so add the NVM PATH to the ~/.ZSHRC configuration file.

# # Add NVM PATH export nvm_dir="~/.nvm""$NVM _dir/ nvm.sh""$NVM _dir/nvm.sh "

If the user directory (/USERS/XXX) does not have a. NVM directory, you must create a new. NVM directory

NVM Common commands:

NVM Install <version> # # Installation of the specified version, can be blurred installation, such as: Install v4.4.0, both NVM install v4.4.0, but also NVM install 4.4

NVM Uninstall <version> # # Delete installed specified version, syntax similar to install

NVM use <version> # # switch using the specified version of node

NVM LS # # list all installed versions

NVM Ls-remote # # List so the version of the remote server (official node version list)

NVM Current # # shows the present version

NVM alias <name> <version> # # Add an alias to a different version number

NVM unalias <name> # # Delete a defined alias

NVM reinstall-packages <version> # # in the current version of the node environment, re-install the NPM package with the specified version number globally

Install node multi-version manager NVM, and NVM common commands

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.