Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node 版本管理之 nvm #60

Open
huangshuwei opened this issue Oct 28, 2022 · 0 comments
Open

node 版本管理之 nvm #60

huangshuwei opened this issue Oct 28, 2022 · 0 comments
Labels
后端 .net/nodejs

Comments

@huangshuwei
Copy link
Owner

huangshuwei commented Oct 28, 2022

前言

由于前端相关的技术依赖node版本不一致的问题,我们不得不在一台电脑上安装不同的node版本。这里介绍一款 针对 windows 系统的 node 版本管理工具 nvm.

安装

在发布版本中找到一个下载即可:https://github.com/coreybutler/nvm-windows/releases

验证 nvm 是否安装完成

nvm version

使用

以下常用的命令
1、通过 nvm install <version> [arch]去安装你需要的nodejs 版本。如 nvm install 14.17.0
2、通过 nvm list 列出当前你的电脑上node的版本列表
3、通过 nvm use [version] [arch] 使用当前node版本。如nvm use 14.17.0,你可以通过 node -v验证当前node版本是否切换成功

其他更多命令请查看:https://github.com/coreybutler/nvm-windows#usage

-完-

@huangshuwei huangshuwei added the 后端 .net/nodejs label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
后端 .net/nodejs
Projects
None yet
Development

No branches or pull requests

1 participant