中国大陆环境在windows下安装claude code cli
先安装 Node.js(建议 安装 v24 或更高版本)
https://nodejs.org/zh-cn/download为npm设置源
npm config set registry https://registry.npmmirror.com/一键安装:
npm install -g @anthropic-ai/claude-code检查
claude --version附: CC-Switch下载地址:
https://github.com/farion1231/cc-switch/releases附: Git下载地址
https://git-scm.com/install/windows