" $ (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