feat: add Node.js prerequisite check and install instructions to README

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-02-27 08:34:13 +00:00
parent e45a11c97d
commit 97a1433bbd
4 changed files with 172 additions and 0 deletions

View File

@@ -16,6 +16,49 @@
## 快速开始
### 先决条件检查
安装前,请确认已安装 Node.js v24.13+
```bash
# 检查 Node.js 版本
node --version
# 如果缺少 Node.js 或版本过旧,请安装:
# Linux (Debian/Ubuntu):
sudo apt update && sudo apt install -y nodejs npm
# Linux (RHEL/Fedora):
sudo dnf install -y nodejs npm
# macOS:
brew install node
# Windows (以管理员身份运行 PowerShell):
winget install OpenJS.NodeJS
```
### 替代方案 - 自动安装 Node.js
如果需要自动安装或更新 Node.js
**Linux:**
```bash
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash - && sudo apt-get install -y nodejs
```
**macOS:**
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
```
**Windows:**
```powershell
# 以管理员身份运行
winget install OpenJS.NodeJS
```
### Claude Code — 安装
在任何平台上只需两行命令: