mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
Merge pull request #341 from YuanyuanMa03/docs/bun-installation-guide
docs: 添加 Bun 安装详细说明
This commit is contained in:
35
README.md
35
README.md
@@ -60,6 +60,41 @@ CLAUDE_BRIDGE_BASE_URL=https://remote-control.claude-code-best.win/ CLAUDE_BRIDG
|
||||
一定要最新版本的 bun 啊, 不然一堆奇奇怪怪的 BUG!!! bun upgrade!!!
|
||||
|
||||
- 📦 [Bun](https://bun.sh/) >= 1.3.11
|
||||
|
||||
**安装 Bun:**
|
||||
|
||||
```bash
|
||||
# Linux 和 macOS
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
# Windows (PowerShell)
|
||||
powershell -c "irm bun.sh/install.ps1 | iex"
|
||||
```
|
||||
|
||||
**安装后的操作:**
|
||||
|
||||
1. **重启终端** 或重新加载 shell 配置文件:
|
||||
```bash
|
||||
# macOS/Linux (zsh)
|
||||
source ~/.zshrc
|
||||
|
||||
# macOS/Linux (bash)
|
||||
source ~/.bashrc
|
||||
|
||||
# Windows PowerShell
|
||||
# 关闭并重新打开 PowerShell 即可
|
||||
```
|
||||
|
||||
2. **验证安装:**
|
||||
```bash
|
||||
bun --version
|
||||
```
|
||||
|
||||
3. **更新到最新版本(如果已安装):**
|
||||
```bash
|
||||
bun upgrade
|
||||
```
|
||||
|
||||
- ⚙️ 常规的配置 CC 的方式, 各大提供商都有自己的配置方式
|
||||
|
||||
### 📥 安装
|
||||
|
||||
35
README_EN.md
35
README_EN.md
@@ -48,6 +48,41 @@ Sponsor placeholder.
|
||||
Make sure you're on the latest version of Bun, otherwise you'll run into all sorts of weird bugs. Run `bun upgrade`!
|
||||
|
||||
- [Bun](https://bun.sh/) >= 1.3.11
|
||||
|
||||
**Install Bun:**
|
||||
|
||||
```bash
|
||||
# Linux and macOS
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
# Windows (PowerShell)
|
||||
powershell -c "irm bun.sh/install.ps1 | iex"
|
||||
```
|
||||
|
||||
**Post-installation steps:**
|
||||
|
||||
1. **Restart your terminal** or reload your shell configuration:
|
||||
```bash
|
||||
# macOS/Linux (zsh)
|
||||
source ~/.zshrc
|
||||
|
||||
# macOS/Linux (bash)
|
||||
source ~/.bashrc
|
||||
|
||||
# Windows PowerShell
|
||||
# Close and reopen PowerShell
|
||||
```
|
||||
|
||||
2. **Verify installation:**
|
||||
```bash
|
||||
bun --version
|
||||
```
|
||||
|
||||
3. **Update to latest version (if already installed):**
|
||||
```bash
|
||||
bun upgrade
|
||||
```
|
||||
|
||||
- Standard Claude Code configuration — each provider has its own setup method
|
||||
|
||||
### Install
|
||||
|
||||
Reference in New Issue
Block a user