[deepin exploration] deepin25.10安装claude
Tofloor
poster avatar
李昊哲
deepin
2 hours ago
Author
deepin25.10安装claude
软件 备注
nodejs cladue运行环境
git 版本控制
国产大模型api-key 商业策略
cc switch 管理大模型
cladue
vscode 如果不习惯命令行操作可以选择一个图画工具

准备

创建软件安装目录

mkdir ~/opt

nodejs

下载nodejs

wget https://nodejs.org/dist/v24.14.1/node-v24.14.1-linux-x64.tar.xz

解压到指定目录

tar -xvf node-v24.14.1-linux-x64.tar.xz -C ~/opt

修改nodejs安装目录名称

mv ~/opt/node-v24.14.1-linux-x64 ~/opt/nodejs

配置国内镜像源

npm config set registry http://registry.npmmirror.com --global

npx 工具却换为淘宝源

npx nrm use taobao

升级npm

npm install -g npm

全局安装以下工具并配置国内镜像源

yarn

npm install yarn -g
yarn config set registry https://registry.npmmirror.com

pnpm

npm install pnpm -g
pnpm config set registry https://registry.npmmirror.com

git

sudo apt -y install git

cc-switch

github地址: https://github.com/farion1231/cc-switch/
下载页面: https://github.com/farion1231/cc-switch/releases

image-20260414095631427.png

sudo apt -y install libayatana-indicator3-7 libdbusmenu-glib4 libdbusmenu-gtk3-4
sudo apt -y install libayatana-appindicator3-1
sudo dpkg -i CC-Switch-v3.13.0-Linux-x86_64.deb

启动 cc-switch

image-20260414100304220.png

选择大模型

image-20260414100358157.png

输入 API-KEY

image-20260414100627647.png

claude

安装

npm install -g @anthropic-ai/claude-code

**加速下载 (可选):**如果网络下载缓慢,可使用国内镜像源,例如淘宝镜像:

npm install -g @anthropic-ai/claude-code --registry=https://registry.npmmirror.com

创建工作目录

mkdir ~/claude-code

启动 claude

  1. 进入工作目录

    cd  ~/claude-code
    
  2. 启动claude

    claude
    

    image-20260414101712044.png

    image-20260414101831367.png

    image-20260414101922147.png

    image-20260414101938485.png

    image-20260414102015754.png

vscode

下载安装

下载页面: https://code.visualstudio.com/Download

sudo dpkg -i code_1.115.0-1775600353_amd64.deb

配置插件

在插件市场搜索 claude并安装

image-20260414102634811.png

启动插件

image-20260414102753116.png

Reply Favorite View the author
All Replies

No replies yet