Auto-sync: 2026-04-16 17:30

This commit is contained in:
2026-04-16 17:30:41 +08:00
parent b2250c60b2
commit c999498de4
662 changed files with 3797 additions and 21340 deletions

View File

@@ -1,21 +0,0 @@
---
title: "nvm"
type: concept
tags: [node, version-manager, ubuntu, installation]
last_updated: 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]]