1.配置git

git config --global url."https://mirror.7edusoccer.com/github.com".insteadOf "https://github.com"

# 用编辑器打开(也可以用 vim/nano) git config --global --edit看看生效没

配置pip加速

# 设置Python解释器下载镜像(解决python安装慢的问题) export UV_PYTHON_INSTALL_MIRROR="https://ghproxy.com/https://github.com/astral-sh/python-build-standalone/releases/download" # 设置PyPI镜像源(解决包安装慢的问题) export UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple"

npm加速

npm config set registry https://registry.npmmirror.com

npm config get registry

# 正确、无报错的全局源配置 npm config set registry https://mirrors.cloud.tencent.com/npm/ --global

然后执行安装脚本

Logo

小龙虾开发者社区是 CSDN 旗下专注 OpenClaw 生态的官方阵地,聚焦技能开发、插件实践与部署教程,为开发者提供可直接落地的方案、工具与交流平台,助力高效构建与落地 AI 应用

更多推荐