1. What is nvm ?
nvm is a tool to manage nodejs version. In actual development, the development dependencies of some projects require different versions of the nodejs operating environment. At this time, we need to use nvm to manage the nodejs version.
2. Installation steps
1. Open https://github.com/creationix...
Find the word install in the introduction below, and then continue to search until you find it
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
Copy these words to the terminal of Mac, and nvm will be installed
2. After the installation is complete, it is temporarily unavailable. You need to copy the two lines of code it prompts to configure the environment variables
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
Enter after completion
nvm
Appear
node version manger
It means that nvm is installed successfully.