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

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐