Files
nexus/wiki/concepts/nvm.md

22 lines
733 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.
---
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]]