1.nvm (manage nodejs and npm versions)
Related commands:
nvm list available ##View installable
nvm install ##Install the specified version (such as nvm install 16.15.1)
nvm use ##Switch to use the specified version node
nvm ls ##List all installed versions
nvm version ## Display the current nvm version
nvm uninstall ##Delete the installed specified version
2.node (code library required for project development)
Related commands:
node -v ##Display the current node version
3.npm (nodejs package management tool, manages nodejs third-party plug-ins)
Related commands:
npm -v ##Display the current npm version
4.nrm (manage the source address of npm download plug-ins)
Installation command: npm install nrm -g (node version 14 is recommended)
Related commands:
nrm ls ##Currently available sources
nrm use <source name> ##Switch sources (such as nrm use taobao)
nrm test ##Detect the speed of all sources
npm config set registry https://registry.npm.taobao.org ##Set Taobao mirror
npm config get registry ##Check whether the source switch is successful [View current address]
5.yarn
Installation command: npm install --global yarn
related commands:
yarn --version ##Display the current yarn version
yarn config set registry https://registry.npmmirror.com/ ##Set Taobao mirror
yarn config get registry ##View the current version Address [View current address]
yarn config set registry https://registry.yarnpkg.com ##Restore address
6
Installation command: yarn global add yrm
related commands:
yrm ls ##View all mirrors
yrm use taobao ##Use Taobao mirror