Files
nexus/wiki/entities/nvm.md
2026-04-14 16:02:50 +08:00

29 lines
731 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.
---
id: nvm
title: "nvm"
type: entity
tags: [node-js, version-manager, tool]
aliases: [Node-Version-Manager]
---
## Definition
nvmNode Version Manager是一个 Node.js 版本管理器,允许在同一系统上安装和切换多个 Node.js 版本。
## Core Properties
- **类型**:工具/版本管理器
- **安装命令**`curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
- **官方仓库**https://github.com/nvm-sh/nvm
## Usage
```bash
nvm install 20 # 安装 Node 20
nvm use 20 # 使用 Node 20
nvm alias default 20 # 设置默认版本
```
## Related Entities
- [[Node-js]]nvm 管理的 Node.js 运行时
## Connections
- [[nvm]] ← 管理 ← [[Node-js]]