Manage with NVM:
1, open the HTTPS://GITHUB.COM/CREATIONIX/NVM, found in the README.MD:
Installationinstall Script
To install or update NVM, you can use the install script using CURL:
curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | Bash
or Wget:
wget-qo-https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | Bash
2. Copy the red command into the cmd window to execute
3, after the installation is completed, the CMD window will eventually output:
= = Close and reopen your terminal to start using NVM or run the following to use it now:
Export nvm_dir= "$HOME/.NVM"
[-S "$NVM _dir/nvm.sh"] && \. "$NVM _dir/nvm.sh" # this loads NVM
[-S "$NVM _dir/bash_completion"] && \. "$NVM _dir/bash_completion" # this loads NVM bash_completion
Copy the Red command to the command line to perform the environment adaptation
4, NVM Complete installation. Perform
NVM Install 0.12.4
The version number can be modified according to your needs.
This article is from the "Echo and you take off" blog, please be sure to keep this source http://5052416.blog.51cto.com/5042416/1979865
Install NPM environment under Mac