在WSL2中安装Claude Code
00-基础环境准备
在 WSL 中安装 NVM(Node 版本管理器)
sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
使用 NVM 安装 Node.js
nvm install node
验证 Linux 环境中已安装 Node.js
which npm
01-开始安装
npm config set os linux
npm install -g @anthropic-ai/claude-code
验证版本
claude --version