当前位置:网站首页>Detailed explanation of nvm

Detailed explanation of nvm

2022-09-23 08:36:34anne

1.nvm description

nvm is mainly a tool for managing nodejs and npm versions, which can be used to switch between different versions of nodejs.Because the node version corresponding to vue node-sass has requirements, if it does not match, an error will be reported

2, nvm download address

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

3, nvm download installation package

nvm-setup.zip: This is an installation package, click to install after downloading, it can be used without configuration, which is convenient.

4. Commonly used commands:

Here are a few commonly used ones:

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

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

nvm install [email protected] 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 [email protected] number: uninstall the specified version of nodejs

nvm uninstall 14.15.1: Uninstall the 14.15.1 version of nodejs

nvm use [email protected] 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 the locally installed nvm

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

原网站

版权声明
本文为[anne]所创,转载请带上原文链接,感谢
https://chowdera.com/2022/266/202209230827107379.html

随机推荐