常用语言国内镜像
node
- npm淘宝源
1
2
3npm config set registry=https://registry.npm.taobao.org
# 还原默认源:
npm config set registry=https://registry.npmjs.org - cnpm
1
2npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install XXX(模块名)
python
- 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - 豆瓣源
pip config set global.index-url https://pypi.doubanio.com/simple/ - 阿里
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/ - 中科大
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple/ - 官方
pip config set global.index-url https://pypi.python.org/pypi
php composer国内镜像
- 腾讯云镜像
composer config -g repos.packagist composer https://mirrors.cloud.tencent.com/composer/ - 阿里云镜像
composer config -g repos.packagist composer https://mirrors.aliyun.com/composer/ - 华为云镜像
composer config -g repos.packagist composer https://repo.huaweicloud.com/repository/php/
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 梧桐的学习日记!





