refactor: Claude Code 安装方式从官方原生脚本改为 npm install
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Failing after 11s
国内用户无法访问 claude.ai/install.sh,统一三个工具的安装路径: - 移除 setup.sh/ps1 中 Claude Code 的特殊安装分支 - ClaudeCode 独立脚本添加 Node.js/fnm 检测安装函数链 - 三个工具均使用 npm install -g 安装 (需要 Node.js >= 20) - 更新 CLAUDE.md 和文档中的安装说明
This commit is contained in:
@@ -44,7 +44,7 @@ xcodecli-shells/
|
||||
|
||||
| 工具 | 安装方式 | 依赖 |
|
||||
| ---- | ---- | ---- |
|
||||
| Claude Code | 官方原生脚本 `curl -fsSL https://claude.ai/install.sh \| bash` | 无需 Node.js,自动更新 |
|
||||
| Claude Code | `npm install -g @anthropic-ai/claude-code` | **需要 Node.js >= 20** |
|
||||
| Gemini CLI | `npm install -g @google/gemini-cli@latest` | **需要 Node.js >= 20** |
|
||||
| Codex | `npm install -g @openai/codex` | **需要 Node.js >= 20** |
|
||||
|
||||
@@ -52,10 +52,9 @@ xcodecli-shells/
|
||||
|
||||
跨平台一站式安装配置工具:
|
||||
|
||||
- 检测 Node.js 环境,缺失时使用 fnm 安装 (Gemini CLI / Codex 需要)
|
||||
- 检测 Node.js 环境,缺失时使用 fnm 安装 (三个工具均需要)
|
||||
- 显示三个工具的安装状态
|
||||
- Claude Code 使用官方原生安装脚本 (`curl -fsSL https://claude.ai/install.sh | bash`)
|
||||
- Gemini CLI / Codex 使用 `npm install -g` 安装 (需要 Node.js >= 20)
|
||||
- 三个工具均使用 `npm install -g` 安装 (需要 Node.js >= 20)
|
||||
- 下载并执行对应工具的配置脚本
|
||||
|
||||
```powershell
|
||||
|
||||
Reference in New Issue
Block a user