Table of contents
(1) Garbled characters appear in nvm use
1. Installation of nvm
Nvm official website download address: Releases coreybutler/nvm-windows GitHub
nvm-noinstall.zip: This is a green installation-free version, but you need to configure
nvm-setup.zip before using it: This is an installation package, click to install after downloading.
Source code (zip): zip compressed source code
Source code (tar.gz): tar.gz source code, generally used in Linux systems
Download the nvm-setup.zip compressed package—>unzip—>install the exe installation package—>use "windows+R" and then enter "cmd" and press Enter to open the command window, npm -v to view the version (check whether nvm is installed successfully)
2. The use of nvm
nvm ls (check the various versions of node installed on the current computer)
nvm list available (view all current versions of node)
nvm install 16.16.0 (the version number of node to be used by nvm install) to download the required node version
nvm use 16.16.0 (the version number of node to be used by nvm use) switch the node version to be used
nvm common commands
- nvm install latest: Install the latest stable version of node.js
- nvm install [version]: install the specified version node.js
- nvm use [version]: Use a certain version of node.js
- nvm list: list the currently installed node.js version list
- nvm uninstall [version]: Uninstall the specified version of node.js
- nvm node_mirror [url]: Configure the mirror of nvm
- nvm npm_mirror [url]: configure npm mirror
- nvm arch: Shows whether node is running on 32-bit or 64-bit.
- nvm on: enable node.js version management
- nvm off: turn off node.js version management
3. Frequently asked questions
(1) Garbled characters appear in nvm use
C:\Users\admin>nvm use 16.17.0
exit status 5: �ܾ����ʡ�
exit status 1:
solution;
Use cmd as administrator