nvm manages multiple node versions-mac environment

The prerequisite is to install nvm-view version

nvm -v

Install node specified version - node dual version

nvm  install v8.11.1
nvm install v14.17.4

Check the node installed list - the arrow points to the current version

nvm list

switch node version

nvm use  v14.17.4
nvm alias default v14.17.4

Check node and npm version commands

node -v
npm -v

Logging - npm commands

npm view request  version 

Guess you like

Origin blog.csdn.net/weixin_43866250/article/details/130217807