Управління пакетами для розробників, національний дзеркальний репозиторій

✅ Надає національні URL-адреси дзеркал для pip, Composer, npm, gem і Maven, полегшуючи пошук пакетів і прискорюючи їхнє встановлення.
Дані & Довідка
Provider Source and Usage
Douban

https://pypi.doubanio.com/simple/

pip install -i https://pypi.doubanio.com/simple/
Tsinghua University

https://pypi.tuna.tsinghua.edu.cn/simple

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
Aliyun

https://mirrors.aliyun.com/pypi/simple/

pip install -i https://mirrors.aliyun.com/pypi/simple/
Provider Source and Usage
Aliyun

http://maven.aliyun.com/nexus/content/groups/public/


<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
    xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>Aliyun Maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
        <repositories>
          <repository>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <layout>default</layout>
            <url>http://repo1.maven.org/maven2</url>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
          </repository>
        </repositories>
        <id>official</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>official</activeProfile>
  </activeProfiles>
</settings>					
						
Provider Source and Usage
-

https://packagist.phpcomposer.com/

composer config -g repo.packagist composer https://packagist.phpcomposer.com
-

https://php.cnpkg.org/

composer config -g repo.packagist composer https://php.cnpkg.org
Aliyun

https://mirrors.aliyun.com/composer/

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
Huawei Cloud

https://mirrors.huaweicloud.com/repository/php/

composer config -g repo.packagist composer https://mirrors.huaweicloud.com/repository/php/
Shanghai Jiao Tong University

https://packagist.mirrors.sjtug.sjtu.edu.cn/

composer config -g repo.packagist composer https://packagist.mirrors.sjtug.sjtu.edu.cn
-

https://packagist.jp/

composer config -g repo.packagist composer https://packagist.jp
Provider Source and Usage
Taobao

https://registry.npmmirror.com/

npm config set registry https://registry.npmmirror.com
pnpm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
-

http://r.cnpmjs.org/

npm config set registry http://r.cnpmjs.org/
pnpm config set registry http://r.cnpmjs.org/
yarn config set registry http://r.cnpmjs.org/
Provider Source and Usage
Ruby China

https://ruby.taobao.org/

gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
Tsinghua University

https://mirrors.tuna.tsinghua.edu.cn/rubygems/

gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
Package Manager Proxy Type Usage
pip http/https
https_proxy=http://ip:port pip install
composer http/https
https_proxy=http://ip:port composer install
npm http/https
npm config set proxy http://ip:port
npm config set https-proxy https://ip:port
yarn config set proxy http://ip:port
yarn config set https-proxy https://ip:port
gem http/https
http_proxy=http://ip:host https_proxy=https://ip:host gem install
go http/https
http_proxy=http://ip:host https_proxy=https://ip:host go get

Використання менеджера пакетів значно зменшує обсяг роботи та витрати, пов’язані з впровадженням і керуванням зовнішніми бібліотеками. Однак, оскільки багато репозиторіїв пакетів розміщені за кордоном, під час встановлення через менеджер пакетів можуть виникати перевищення часу очікування або тривалі затримки. Цю проблему можна вирішити, перейшовши на локальне дзеркало або використавши проксі‑сервер.