🔍

首页Home › 开发工具Developer Tools

📦 国内软件源镜像配置生成China Package Mirror Config Generator

一键生成 npm、pip、Maven/Gradle、Go、Composer、RubyGems、Cargo 的国内镜像配置命令:清华、阿里云、腾讯云、华为云、中科大等镜像地址,临时使用、永久设置、查看当前配置和恢复官方源的命令都有。Generate mirror configuration for npm, pip, Maven/Gradle, Go, Composer, RubyGems and Cargo using mainland-China mirrors (Tsinghua, Alibaba Cloud, Tencent Cloud, Huawei Cloud, USTC): one-off use, permanent setup, check the current setting and restore the official source.

使用说明与常见问题How-to & FAQ

「国内软件源镜像配置生成」是什么?What is the China Package Mirror Config Generator tool?

一键生成 npm、pip、Maven/Gradle、Go、Composer、RubyGems、Cargo 的国内镜像配置命令:清华、阿里云、腾讯云、华为云、中科大等镜像地址,临时使用、永久设置、查看当前配置和恢复官方源的命令都有。Generate mirror configuration for npm, pip, Maven/Gradle, Go, Composer, RubyGems and Cargo using mainland-China mirrors (Tsinghua, Alibaba Cloud, Tencent Cloud, Huawei Cloud, USTC): one-off use, permanent setup, check the current setting and restore the official source.

如何使用「国内软件源镜像配置生成」?How do I use the China Package Mirror Config Generator?

选择包管理器和镜像,下方立即生成可复制的命令或配置文件片段;勾选「恢复官方源」可得到撤销命令。镜像地址均已实测可访问(2026 年 10 月),若某个镜像临时不可用,换一个即可。Choose a package manager and a mirror to get ready-to-copy commands or config snippets; tick “Restore official” for the undo commands. All mirror URLs were tested reachable in October 2026; if one is down, switch to another.

设置镜像后安装还是很慢?Still slow after switching?

先用「查看当前配置」的命令确认镜像已生效;公司网络或代理软件可能拦截请求。镜像同步通常有几分钟到几小时的延迟,刚发布的新版本可能暂时找不到,可以临时切回官方源。Run the check command to confirm the mirror is active; corporate networks or proxies may interfere. Mirrors lag the official source by minutes to hours, so a brand-new release may be missing — switch back temporarily.

npm 淘宝镜像 registry.npm.taobao.org 还能用吗?Does registry.npm.taobao.org still work?

旧域名已停止服务,请改用 https://registry.npmmirror.com。旧项目的 lock 文件里如果还有 taobao 地址,需要重新安装或批量替换。The old domain is retired; use https://registry.npmmirror.com. Lock files that still reference taobao need reinstalling or a search-and-replace.

镜像安全吗?Are mirrors safe?

npm、pip、Cargo、Go 等客户端会校验包的哈希或签名(Go 还会对照 sum.golang.org 校验),镜像只是加速下载。建议只使用知名高校或大型云厂商的镜像。npm, pip, Cargo and Go verify package hashes or signatures (Go also checks sum.golang.org); a mirror only speeds downloads. Stick to well-known university or major cloud mirrors.

「国内软件源镜像配置生成」免费吗?数据会上传吗?Is the China Package Mirror Config Generator free? Is my data uploaded?

「国内软件源镜像配置生成」完全免费,无需注册或安装,手机和电脑都能用;所有处理都在你的浏览器本地完成,输入的内容和文件不会上传到服务器。The China Package Mirror Config Generator is completely free with no sign-up or install and works on phones and desktops; everything runs locally in your browser and nothing you enter is uploaded.

相关工具Related tools

🧾 JSON 格式化校验JSON Formatter & Validator✅ YAML 校验器YAML Validator⚙️ TOML 转 JSONTOML to JSON Converter🔐 Linux 权限计算器 chmodChmod Calculator🧩 URL 解析器URL Parser⚙️ 位运算计算器Bitwise Calculator

← 全部工具All tools