- 跟着这个教程,你可以轻松在自己的电脑上安装并使用 Claude Code。 -
-- Claude Code 需要 Node.js 环境才能运行。 -
- -- 方法一:官网下载(推荐) -
-https://nodejs.org/
- .msi
- 文件
- - 方法二:使用包管理器 -
-- 如果你安装了 Chocolatey 或 Scoop,可以使用命令行安装: -
-- 安装完成后,打开 PowerShell 或 CMD,输入以下命令: -
-如果显示版本号,说明安装成功了!
-- 打开 PowerShell 或 CMD,运行以下命令: -
-- 这个命令会从 npm 官方仓库下载并安装最新版本的 Claude Code。 -
- -安装完成后,输入以下命令检查是否安装成功:
-- 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 -
-- 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: -
- -在 PowerShell 中运行以下命令:
-- 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 -
-- 在 PowerShell 中运行以下命令设置用户级环境变量: -
-查看已设置的环境变量:
-- 💡 设置后需要重新打开 PowerShell 窗口才能生效。 -
-- 设置完环境变量后,可以通过以下命令验证是否设置成功: -
- -- 预期输出示例: -
-- 💡 如果输出为空或显示变量名本身,说明环境变量设置失败,请重新设置。 -
-- 如果你使用 Gemini CLI,需要设置以下环境变量: -
- -在 PowerShell 中运行以下命令:
-- 💡 使用与 Claude Code 相同的 API 密钥即可。 -
-在 PowerShell 中运行以下命令:
-- 💡 设置后需要重新打开 PowerShell 窗口才能生效。 -
-在 PowerShell 中验证:
-- 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: -
- -
- 在
- ~/.codex/config.toml
- 文件中添加以下配置:
-
- 在
- ~/.codex/auth.json
- 文件中配置API密钥:
-
- 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 -
-- 现在你可以开始使用 Claude Code 了! -
- -这通常是权限问题,尝试以下解决方法:
-npm config set prefix %APPDATA%\npm
- 如果遇到执行策略限制,运行:
-设置永久环境变量后需要:
-echo $env:ANTHROPIC_BASE_URL
- Claude Code 需要 Node.js 环境才能运行。
- -方法一:使用 Homebrew(推荐)
-- 如果你已经安装了 Homebrew,使用它安装 Node.js 会更方便: -
-方法二:官网下载
-https://nodejs.org/
- .pkg
- 文件
- sudo
- 安装完成后,打开 Terminal,输入以下命令:
-如果显示版本号,说明安装成功了!
-- 打开 Terminal,运行以下命令: -
-如果遇到权限问题,可以使用 sudo:
-安装完成后,输入以下命令检查是否安装成功:
-- 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 -
-- 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: -
- -在 Terminal 中运行以下命令:
-- 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 -
-- 编辑你的 shell 配置文件(根据你使用的 shell): -
-- 如果你使用 Gemini CLI,需要设置以下环境变量: -
- -在 Terminal 中运行以下命令:
-- 💡 使用与 Claude Code 相同的 API 密钥即可。 -
-添加到你的 shell 配置文件:
-在 Terminal 中验证:
-- 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: -
- -
- 在
- ~/.codex/config.toml
- 文件中添加以下配置:
-
- 在
- ~/.codex/auth.json
- 文件中配置API密钥:
-
- 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 -
-- 现在你可以开始使用 Claude Code 了! -
- -尝试以下解决方法:
-sudo npm install -g @anthropic-ai/claude-code
- npm config set prefix ~/.npm-global
- 如果系统阻止运行 Claude Code:
-sudo spctl --master-disable
- 检查以下几点:
-echo $ANTHROPIC_BASE_URL
- Claude Code 需要 Node.js 环境才能运行。
- -方法一:使用官方仓库(推荐)
-方法二:使用系统包管理器
-- 虽然版本可能不是最新的,但对于基本使用已经足够: -
-sudo安装完成后,打开终端,输入以下命令:
-如果显示版本号,说明安装成功了!
-- 打开终端,运行以下命令: -
-如果遇到权限问题,可以使用 sudo:
-安装完成后,输入以下命令检查是否安装成功:
-- 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 -
-- 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: -
- -在终端中运行以下命令:
-- 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 -
-编辑你的 shell 配置文件:
-- 如果你使用 Gemini CLI,需要设置以下环境变量: -
- -在终端中运行以下命令:
-- 💡 使用与 Claude Code 相同的 API 密钥即可。 -
-添加到你的 shell 配置文件:
-在终端中验证:
-- 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: -
- -
- 在
- ~/.codex/config.toml
- 文件中添加以下配置:
-
- 在
- ~/.codex/auth.json
- 文件中配置API密钥:
-
- 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 -
-- 现在你可以开始使用 Claude Code 了! -
- -尝试以下解决方法:
-sudo npm install -g @anthropic-ai/claude-code
- npm config set prefix ~/.npm-global
- export PATH=~/.npm-global/bin:$PATH
- 某些 Linux 发行版需要安装额外依赖:
-检查以下几点:
-source ~/.bashrc
- echo $ANTHROPIC_BASE_URL
- - 你已经成功安装并配置了 Claude Code,现在可以开始享受 AI 编程助手带来的便利了。 -
-- 如果在使用过程中遇到任何问题,可以查看官方文档或社区讨论获取帮助。 -
-+ Follow this tutorial to easily install and use Claude Code on your computer. +
++ Claude Code requires Node.js environment to run. +
+ ++ Method 1: Download from Official Website (Recommended) +
+https://nodejs.org/
+ .msi
+ file
+ + Method 2: Using Package Managers +
++ If you have Chocolatey or Scoop installed, you can use the command line to install: +
++ After installation completes, open PowerShell or CMD and enter the following commands: +
+If version numbers are displayed, installation was successful!
++ Open PowerShell or CMD and run the following command: +
++ This command will download and install the latest version of Claude Code from the official npm repository. +
+ +After installation completes, enter the following command to check if installation was successful:
++ If version number is displayed, congratulations! Claude Code has been successfully installed. +
++ To connect Claude Code to your relay service, you need to set two environment variables: +
+ +Run the following commands in PowerShell:
++ 💡 Remember to replace "your-api-key" with the actual key created in the "API Keys" tab above. +
++ Run the following commands in PowerShell to set user-level environment variables: +
+View configured environment variables:
++ 💡 After setting, you need to reopen PowerShell window for changes to take effect. +
++ After setting environment variables, you can verify if they were set successfully with the following commands: +
+ ++ Expected Output Example: +
++ 💡 If output is empty or shows variable name itself, environment variable setup failed, please reconfigure. +
++ If you use Gemini CLI, you need to set the following environment variables: +
+ +Run the following commands in PowerShell:
++ 💡 You can use the same API key as Claude Code. +
+Run the following commands in PowerShell:
++ 💡 After setting, you need to reopen PowerShell window for changes to take effect. +
+Verify in PowerShell:
++ If you use tools that support OpenAI API (such as Codex), you need to set the following environment variables: +
+ +
+ In your
+ ~/.codex/config.toml
+ file, add the following configuration:
+
+ In your
+ ~/.codex/auth.json
+ file, configure the API key:
+
+ 💡 You can use the same API key as Claude Code, in the format cr_xxxxxxxxxx. +
++ Now you can start using Claude Code! +
+ +This is usually a permission issue. Try the following solutions:
+npm config set prefix %APPDATA%\npm
+ If you encounter execution policy restrictions, run:
+After setting permanent environment variables, you need to:
+echo $env:ANTHROPIC_BASE_URL
+ Claude Code requires Node.js environment to run.
+ +Method 1: Using Homebrew (Recommended)
++ If you already have Homebrew installed, using it to install Node.js will be more convenient: +
+Method 2: Download from Official Website
+https://nodejs.org/
+ .pkg
+ file
+ sudo
+ After installation, open Terminal and enter the following commands:
+If version numbers are displayed, the installation was successful!
++ Open Terminal and run the following command: +
+If you encounter permission issues, you can use sudo:
+After installation completes, enter the following command to check if installation was successful:
++ If version number is displayed, congratulations! Claude Code has been successfully installed. +
++ To connect Claude Code to your relay service, you need to set two environment variables: +
+ +Run the following commands in Terminal:
++ 💡 Remember to replace "your-api-key" with the actual key created in the "API Keys" tab above. +
++ Edit your shell configuration file (depending on your shell): +
++ If you use Gemini CLI, you need to set the following environment variables: +
+ +Run the following commands in Terminal:
++ 💡 You can use the same API key as Claude Code. +
+Add to your shell configuration file:
+Verify in Terminal:
++ If you use tools that support OpenAI API (such as Codex), you need to set the following environment variables: +
+ +
+ In your
+ ~/.codex/config.toml
+ file, add the following configuration:
+
+ In your
+ ~/.codex/auth.json
+ file, configure the API key:
+
+ 💡 You can use the same API key as Claude Code, in the format cr_xxxxxxxxxx. +
++ Now you can start using Claude Code! +
+ +Try the following solutions:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ If the system blocks Claude Code from running:
+sudo spctl --master-disable
+ Check the following points:
+echo $ANTHROPIC_BASE_URL
+ Claude Code requires Node.js environment to run.
+ +Method 1: Using Official Repository (Recommended)
+Method 2: Using System Package Manager
++ Although the version may not be the latest, it's sufficient for basic use: +
+sudoAfter installation, open terminal and enter the following commands:
+If version numbers are displayed, the installation was successful!
++ Open terminal and run the following command: +
+If you encounter permission issues, you can use sudo:
+After installation completes, enter the following command to check if installation was successful:
++ If version number is displayed, congratulations! Claude Code has been successfully installed. +
++ To connect Claude Code to your relay service, you need to set two environment variables: +
+ +Run the following commands in terminal:
++ 💡 Remember to replace "your-api-key" with the actual key created in the "API Keys" tab above. +
+Edit your shell configuration file:
++ If you use Gemini CLI, you need to set the following environment variables: +
+ +Run the following commands in terminal:
++ 💡 You can use the same API key as Claude Code. +
+Add to your shell configuration file:
+Verify in terminal:
++ If you use tools that support OpenAI API (such as Codex), you need to set the following environment variables: +
+ +
+ In your
+ ~/.codex/config.toml
+ file, add the following configuration:
+
+ In your
+ ~/.codex/auth.json
+ file, configure the API key:
+
+ 💡 You can use the same API key as Claude Code, in the format cr_xxxxxxxxxx. +
++ Now you can start using Claude Code! +
+ +Try the following solutions:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ export PATH=~/.npm-global/bin:$PATH
+ Some Linux distributions need additional dependencies:
+Check the following points:
+source ~/.bashrc
+ echo $ANTHROPIC_BASE_URL
+ + You have successfully installed and configured Claude Code. Now you can start enjoying the convenience brought by AI programming assistant. +
++ If you encounter any issues during use, you can check the official documentation or community discussions for help. +
++ 跟着这个教程,你可以轻松在自己的电脑上安装并使用 Claude Code。 +
++ Claude Code 需要 Node.js 环境才能运行。 +
+ ++ 方法一:官网下载(推荐) +
+https://nodejs.org/
+ .msi
+ 文件
+ + 方法二:使用包管理器 +
++ 如果你安装了 Chocolatey 或 Scoop,可以使用命令行安装: +
++ 安装完成后,打开 PowerShell 或 CMD,输入以下命令: +
+如果显示版本号,说明安装成功了!
++ 打开 PowerShell 或 CMD,运行以下命令: +
++ 这个命令会从 npm 官方仓库下载并安装最新版本的 Claude Code。 +
+ +安装完成后,输入以下命令检查是否安装成功:
++ 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 +
++ 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: +
+ +在 PowerShell 中运行以下命令:
++ 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 +
++ 在 PowerShell 中运行以下命令设置用户级环境变量: +
+查看已设置的环境变量:
++ 💡 设置后需要重新打开 PowerShell 窗口才能生效。 +
++ 设置完环境变量后,可以通过以下命令验证是否设置成功: +
+ ++ 预期输出示例: +
++ 💡 如果输出为空或显示变量名本身,说明环境变量设置失败,请重新设置。 +
++ 如果你使用 Gemini CLI,需要设置以下环境变量: +
+ +在 PowerShell 中运行以下命令:
++ 💡 使用与 Claude Code 相同的 API 密钥即可。 +
+在 PowerShell 中运行以下命令:
++ 💡 设置后需要重新打开 PowerShell 窗口才能生效。 +
+在 PowerShell 中验证:
++ 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: +
+ +
+ 在
+ ~/.codex/config.toml
+ 文件中添加以下配置:
+
+ 在
+ ~/.codex/auth.json
+ 文件中配置API密钥:
+
+ 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 +
++ 现在你可以开始使用 Claude Code 了! +
+ +这通常是权限问题,尝试以下解决方法:
+npm config set prefix %APPDATA%\npm
+ 如果遇到执行策略限制,运行:
+设置永久环境变量后需要:
+echo $env:ANTHROPIC_BASE_URL
+ Claude Code 需要 Node.js 环境才能运行。
+ +方法一:使用 Homebrew(推荐)
++ 如果你已经安装了 Homebrew,使用它安装 Node.js 会更方便: +
+方法二:官网下载
+https://nodejs.org/
+ .pkg
+ 文件
+ sudo
+ 安装完成后,打开 Terminal,输入以下命令:
+如果显示版本号,说明安装成功了!
++ 打开 Terminal,运行以下命令: +
+如果遇到权限问题,可以使用 sudo:
+安装完成后,输入以下命令检查是否安装成功:
++ 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 +
++ 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: +
+ +在 Terminal 中运行以下命令:
++ 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 +
++ 编辑你的 shell 配置文件(根据你使用的 shell): +
++ 如果你使用 Gemini CLI,需要设置以下环境变量: +
+ +在 Terminal 中运行以下命令:
++ 💡 使用与 Claude Code 相同的 API 密钥即可。 +
+添加到你的 shell 配置文件:
+在 Terminal 中验证:
++ 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: +
+ +
+ 在
+ ~/.codex/config.toml
+ 文件中添加以下配置:
+
+ 在
+ ~/.codex/auth.json
+ 文件中配置API密钥:
+
+ 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 +
++ 现在你可以开始使用 Claude Code 了! +
+ +尝试以下解决方法:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ 如果系统阻止运行 Claude Code:
+sudo spctl --master-disable
+ 检查以下几点:
+echo $ANTHROPIC_BASE_URL
+ Claude Code 需要 Node.js 环境才能运行。
+ +方法一:使用官方仓库(推荐)
+方法二:使用系统包管理器
++ 虽然版本可能不是最新的,但对于基本使用已经足够: +
+sudo安装完成后,打开终端,输入以下命令:
+如果显示版本号,说明安装成功了!
++ 打开终端,运行以下命令: +
+如果遇到权限问题,可以使用 sudo:
+安装完成后,输入以下命令检查是否安装成功:
++ 如果显示版本号,恭喜你!Claude Code 已经成功安装了。 +
++ 为了让 Claude Code 连接到你的中转服务,需要设置两个环境变量: +
+ +在终端中运行以下命令:
++ 💡 记得将 "你的API密钥" 替换为在上方 "API Keys" 标签页中创建的实际密钥。 +
+编辑你的 shell 配置文件:
++ 如果你使用 Gemini CLI,需要设置以下环境变量: +
+ +在终端中运行以下命令:
++ 💡 使用与 Claude Code 相同的 API 密钥即可。 +
+添加到你的 shell 配置文件:
+在终端中验证:
++ 如果你使用支持 OpenAI API 的工具(如 Codex),需要设置以下环境变量: +
+ +
+ 在
+ ~/.codex/config.toml
+ 文件中添加以下配置:
+
+ 在
+ ~/.codex/auth.json
+ 文件中配置API密钥:
+
+ 💡 使用与 Claude Code 相同的 API 密钥即可,格式如 cr_xxxxxxxxxx。 +
++ 现在你可以开始使用 Claude Code 了! +
+ +尝试以下解决方法:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ export PATH=~/.npm-global/bin:$PATH
+ 某些 Linux 发行版需要安装额外依赖:
+检查以下几点:
+source ~/.bashrc
+ echo $ANTHROPIC_BASE_URL
+ + 你已经成功安装并配置了 Claude Code,现在可以开始享受 AI 编程助手带来的便利了。 +
++ 如果在使用过程中遇到任何问题,可以查看官方文档或社区讨论获取帮助。 +
++ 跟著這個教程,你可以輕鬆在自己的電腦上安裝並使用 Claude Code。 +
++ Claude Code 需要 Node.js 環境才能運行。 +
+ ++ 方法一:官網下載(推薦) +
+https://nodejs.org/
+ .msi
+ 檔案
+ + 方法二:使用套件管理器 +
++ 如果你安裝了 Chocolatey 或 Scoop,可以使用命令行安裝: +
++ 安裝完成後,打開 PowerShell 或 CMD,輸入以下命令: +
+如果顯示版本號,說明安裝成功了!
++ 打開 PowerShell 或 CMD,運行以下命令: +
++ 這個命令會從 npm 官方倉庫下載並安裝最新版本的 Claude Code。 +
+ +安裝完成後,輸入以下命令檢查是否安裝成功:
++ 如果顯示版本號,恭喜你!Claude Code 已經成功安裝了。 +
++ 為了讓 Claude Code 連接到你的中轉服務,需要設定兩個環境變數: +
+ +在 PowerShell 中運行以下命令:
++ 💡 記得將 "你的API密鑰" 替換為在上方 "API Keys" 標籤頁中創建的實際密鑰。 +
++ 在 PowerShell 中運行以下命令設定用戶級環境變數: +
+查看已設定的環境變數:
++ 💡 設定後需要重新打開 PowerShell 視窗才能生效。 +
++ 設定完環境變數後,可以通過以下命令驗證是否設定成功: +
+ ++ 預期輸出示例: +
++ 💡 如果輸出為空或顯示變數名本身,說明環境變數設定失敗,請重新設定。 +
++ 如果你使用 Gemini CLI,需要設定以下環境變數: +
+ +在 PowerShell 中運行以下命令:
++ 💡 使用與 Claude Code 相同的 API 密鑰即可。 +
+在 PowerShell 中運行以下命令:
++ 💡 設定後需要重新打開 PowerShell 視窗才能生效。 +
+在 PowerShell 中驗證:
++ 如果你使用支援 OpenAI API 的工具(如 Codex),需要設定以下環境變數: +
+ +
+ 在
+ ~/.codex/config.toml
+ 檔案中新增以下設定:
+
+ 在
+ ~/.codex/auth.json
+ 檔案中設定API密鑰:
+
+ 💡 使用與 Claude Code 相同的 API 密鑰即可,格式如 cr_xxxxxxxxxx。 +
++ 現在你可以開始使用 Claude Code 了! +
+ +這通常是權限問題,嘗試以下解決方法:
+npm config set prefix %APPDATA%\npm
+ 如果遇到執行策略限制,運行:
+設定永久環境變數後需要:
+echo $env:ANTHROPIC_BASE_URL
+ Claude Code 需要 Node.js 環境才能運行。
+ +方法一:使用 Homebrew(推薦)
++ 如果你已經安裝了 Homebrew,使用它安裝 Node.js 會更方便: +
+方法二:官網下載
+https://nodejs.org/
+ .pkg
+ 檔案
+ sudo
+ 安裝完成後,打開 Terminal,輸入以下命令:
+如果顯示版本號,說明安裝成功了!
++ 打開 Terminal,運行以下命令: +
+如果遇到權限問題,可以使用 sudo:
+安裝完成後,輸入以下命令檢查是否安裝成功:
++ 如果顯示版本號,恭喜你!Claude Code 已經成功安裝了。 +
++ 為了讓 Claude Code 連接到你的中轉服務,需要設定兩個環境變數: +
+ +在 Terminal 中運行以下命令:
++ 💡 記得將 "你的API密鑰" 替換為在上方 "API Keys" 標籤頁中創建的實際密鑰。 +
++ 編輯你的 shell 設定檔案(根據你使用的 shell): +
++ 如果你使用 Gemini CLI,需要設定以下環境變數: +
+ +在 Terminal 中運行以下命令:
++ 💡 使用與 Claude Code 相同的 API 密鑰即可。 +
+新增到你的 shell 設定檔案:
+在 Terminal 中驗證:
++ 如果你使用支援 OpenAI API 的工具(如 Codex),需要設定以下環境變數: +
+ +
+ 在
+ ~/.codex/config.toml
+ 檔案中新增以下設定:
+
+ 在
+ ~/.codex/auth.json
+ 檔案中設定API密鑰:
+
+ 💡 使用與 Claude Code 相同的 API 密鑰即可,格式如 cr_xxxxxxxxxx。 +
++ 現在你可以開始使用 Claude Code 了! +
+ +嘗試以下解決方法:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ 如果系統阻止運行 Claude Code:
+sudo spctl --master-disable
+ 檢查以下幾點:
+echo $ANTHROPIC_BASE_URL
+ Claude Code 需要 Node.js 環境才能運行。
+ +方法一:使用官方倉庫(推薦)
+方法二:使用系統套件管理器
++ 雖然版本可能不是最新的,但對於基本使用已經足夠: +
+sudo安裝完成後,打開終端,輸入以下命令:
+如果顯示版本號,說明安裝成功了!
++ 打開終端,運行以下命令: +
+如果遇到權限問題,可以使用 sudo:
+安裝完成後,輸入以下命令檢查是否安裝成功:
++ 如果顯示版本號,恭喜你!Claude Code 已經成功安裝了。 +
++ 為了讓 Claude Code 連接到你的中轉服務,需要設定兩個環境變數: +
+ +在終端中運行以下命令:
++ 💡 記得將 "你的API密鑰" 替換為在上方 "API Keys" 標籤頁中創建的實際密鑰。 +
+編輯你的 shell 設定檔案:
++ 如果你使用 Gemini CLI,需要設定以下環境變數: +
+ +在終端中運行以下命令:
++ 💡 使用與 Claude Code 相同的 API 密鑰即可。 +
+新增到你的 shell 設定檔案:
+在終端中驗證:
++ 如果你使用支援 OpenAI API 的工具(如 Codex),需要設定以下環境變數: +
+ +
+ 在
+ ~/.codex/config.toml
+ 檔案中新增以下設定:
+
+ 在
+ ~/.codex/auth.json
+ 檔案中設定API密鑰:
+
+ 💡 使用與 Claude Code 相同的 API 密鑰即可,格式如 cr_xxxxxxxxxx。 +
++ 現在你可以開始使用 Claude Code 了! +
+ +嘗試以下解決方法:
+sudo npm install -g @anthropic-ai/claude-code
+ npm config set prefix ~/.npm-global
+ export PATH=~/.npm-global/bin:$PATH
+ 某些 Linux 發行版需要安裝額外依賴:
+檢查以下幾點:
+source ~/.bashrc
+ echo $ANTHROPIC_BASE_URL
+ + 你已經成功安裝並設定了 Claude Code,現在可以開始享受 AI 編程助手帶來的便利了。 +
++ 如果在使用過程中遇到任何問題,可以查看官方文檔或社區討論獲取幫助。 +
+