欢迎访问我的网站与公众号!点击与扫码即可进入,谢谢关注!

node

  1. npm淘宝源
    1
    2
    3
    npm config set registry=https://registry.npm.taobao.org
    # 还原默认源:
    npm config set registry=https://registry.npmjs.org
  2. cnpm
    1
    2
    npm install -g cnpm --registry=https://registry.npm.taobao.org
    cnpm install XXX(模块名)

python

  1. 清华源
    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  2. 豆瓣源
    pip config set global.index-url https://pypi.doubanio.com/simple/
  3. 阿里
    pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
  4. 中科大
    pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple/
  5. 官方
    pip config set global.index-url https://pypi.python.org/pypi

php composer国内镜像

  1. 腾讯云镜像
    composer config -g repos.packagist composer https://mirrors.cloud.tencent.com/composer/
  2. 阿里云镜像
    composer config -g repos.packagist composer https://mirrors.aliyun.com/composer/
  3. 华为云镜像
    composer config -g repos.packagist composer https://repo.huaweicloud.com/repository/php/