常用国内软件源

时间:2020-05-01

Composer

阿里云

全局配置

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

取消配置

composer config -g --unset repos.packagist

当前项目配置

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

取消当前项目配置

composer config --unset repos.packagist

调试

composer -vvv require alibabacloud/sdk

npm

npm config set registry https://registry.npm.taobao.org

flutter

https://flutter.dev/community/china

环境变量配置

FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn
PUB_HOSTED_URL: https://pub.flutter-io.cn

或者

FLUTTER_STORAGE_BASE_URL: https://mirrors.sjtug.sjtu.edu.cn/
PUB_HOSTED_URL: https://dart-pub.mirrors.sjtug.sjtu.edu.cn/