1. Check the node version supported by nvm
nvm list available
2. Install the specified version node
nvm install 14.21.3
3. View all node versions installed locally
nvm list
You can see that my current version is 14.21.3
4. Switch node version
nvm use 16.18.1
5. Detect that the current node version switch is successful
node -v