init: 初始化 XiaowenBlog 博客项目,添加配置文件及技术文章

This commit is contained in:
2026-03-27 12:22:43 +08:00
commit aa1fb1d6f5
177 changed files with 27919 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
---
title: nodejs
date: 2024-08-01 09:34:32
tags:
---
# 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
```