- Install the NVM version management tool first
- Install NodeJS using the installation package: Directory is set to the version number of the existing NodeJS in the NVM installation directory
- through
nvm install [version]
Install the specified version of Node
NVM Version Management tool:
Download: github.com/coreybutler…
Directory after installation:
Command usage:
- View the list of installed versions:
nvm list
- Switch node versions:
nvm use [version]
- Enable/disable version control:
nvm on/off
After this function is enabled, a NodeJS shortcut will be created in the Program Files folder of disk C for association. After this function is disabled, it will be deleted - Install nodeJS from NVM:
NVM install 10.23.2
- Set the nodeJS version management directory:
nvm root [path]
Default NVM root directory
NodeJS installation package download:
After installing the latest version of Node, using the installation package to install an earlier version of Node will prompt you to close
- Download it at nodejs.cn/download/
- Aliyun mirror: npm.taobao.org/mirrors/nod…