Use nvm to download node js tutorial

1. nvm description

Nvm is mainly a tool for managing nodejs and npm versions, and can be used to switch between different versions of nodejs.

2. nvm installation

Before using, delete the nodejs that has been installed on this machine (if nodejs is installed)

3.nvm download address

https://github.com/coreybutler/nvm-windows/releases

4 for example

nvm install 16.15.0 Download the specified version number
nvm use 16.15.0 Use the specified version

5. List a few commonly used ones: :

nvm list: View the list of nodejs versions installed on the current machine using nvm

nvm arch: Check whether the current machine is 32 bit or 64 bit

nvm install node@version number: install the specified version of nodejs

nvm install latest: install the latest version of nodejs

nvm install 14.15.1: Install the 14.15.1 version of nodejs

nvm uninstall node@version number: Uninstall the specified version of nodejs

nvm uninstall 14.15.1: Uninstall the 14.15.1 version of nodejs

nvm use node@version number: use the specified version of nodejs (this version is already installed)

nvm use 14.15.1: Use the installed 14.15.1 version of nodejs

nvm root: View the installation directory address of nvm installed on this machine

Open cmd as an administrator, and then use nvm use 14.15.1 to use the specified version of node

Guess you like

Origin blog.csdn.net/qq_44716001/article/details/131249881