733 B
733 B
title, type, tags, last_updated
| title | type | tags | last_updated | ||||
|---|---|---|---|---|---|---|---|
| nvm | concept |
|
2026-04-15 |
Definition
Node Version Manager,通过 curl -fsSL 安装,管理多个 Node.js 版本,解决系统包版本冲突问题。
Core Mechanism
- 安装:curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
- 环境变量:export NVM_DIR="$HOME/.nvm",[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
- 常用命令:nvm install 20 / nvm use 20 / nvm alias default 20
Use Case
Ubuntu Server 安装 Node 20 以支持 Vibe-Kanban 和 OpenCode,避免系统包管理器版本过旧。
Connections
- Node 20 ← 版本 ← nvm
- Vibe-Kanban ← 依赖 ← nvm