Use nvm manage multiple node version
Recently, a project node10 need to use the following version, currently installed on the computer is 12+, ease of use is to use the version on the node management computer nvm
installation:
- github above Download the latest version: https://github.com/coreybutler/nvm-windows/releases
- Baidu network disk download: https://pan.baidu.com/s/1vQTzwl6wUnuJlq6pRL5W8A extraction code: 7ih8
Installation is a fool installation, I believe we will
use
After the installation is successful at detecting whether the installation was successful, as follows showing the version number and variety of helpful information, then that is a successful installation:
[pictures of foreign chains dump fails, the source station may have a security chain mechanism, it will be saved directly upload images ( img-ZkMMWx78-1584103933649) (https://figure-bed-1258489075.cos.ap-nanjing.myqcloud.com/img/Snipaste_2020-01-11_00-42-32.png)]
and is commonly used commands nvm :
- nvm version displays the current version can be abbreviated as nvm nvm v
- nvm ls lists all the good node version is already installed
- nvm list available lists all node versions can be installed
- nvm install 10.4.0 installation specify the version number of node
- nvm use v10.3.0 switch to this node version, global change
- nvm current version of the current node
- nvm on node.js enable versioning
- nvm off disabled node.js version management (not unload anything)
- nvm uninstall uninstall the specified version of the node
- nvm node_mirror [url] mirroring node set, the default is https://nodejs.org/dist/. Taobao may be provided as a mirror image https://npm.taobao.org/mirrors/node/
- nvm npm_mirror [url] npm mirror set, may be set to default https://github.com/npm/npm/archive/ mirror Taobao