29 lines
731 B
Markdown
29 lines
731 B
Markdown
---
|
||
id: nvm
|
||
title: "nvm"
|
||
type: entity
|
||
tags: [node-js, version-manager, tool]
|
||
aliases: [Node-Version-Manager]
|
||
---
|
||
|
||
## Definition
|
||
nvm(Node 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]]
|