wenyongda faa5ff5430 docs: 为所有文章添加tags和categories元数据
为博客中的所有文章统一添加了tags和categories元数据,使用数组格式规范标签分类,便于文章分类管理和检索
2026-04-15 13:35:57 +08:00

62 lines
883 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: nodejs
date: 2024-08-01 09:34:32
tags: [Node.js, nvm, JavaScript, 后端]
categories: [后端开发, Node.js]
---
# nvm
## nvm介绍
nvm 一个nodejs版本管理工具
nvm全英文也叫node.js version management是一个nodejs的版本管理工具。为了解决node.js各种版本存在不兼容现象可以通过它可以安装和切换不同版本的nodejs。
nvm能干嘛
简单的命令下载长期稳定支持版本的Nodejs
简单的命令实现 Node.js 的多个版本之间轻松切换
## nvm命令
### 版本
```shell
nvm -v
```
### 查看可以nodejs的稳定版本
```shell
nvm list available
```
### 下载指定node版本
```shell
nvm install 18.20.4
```
### 查看已安装nodejs版本
```shell
nvm list
```
### 切换当前使用版本
```shell
nvm ust 18.20.4
```
### 卸载nodejs版本
```shell
nvm uninstall 18.20.4
```