最近更新时间:2025-09-18 13:13:38
如您遇到问题,可参考Node.js官方文档
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.19.0".
# Verify npm version:
npm -v # Should print "10.9.3".如您遇到问题,可参考Claude Code官方文档
npm install -g @anthropic-ai/claude-codeexport ANTHROPIC_MODEL={Model}
export ANTHROPIC_BASE_URL=https://kspmas.ksyun.com/
export ANTHROPIC_AUTH_TOKEN={API-KEY}接下来,您就可以开始使用Claude Code了!
纯净模式
