Write the Code. Change the World.

10月 11

  1. 去除镜像
composer config -g --unset repos.packagist
  1. 添加全局镜像(两个选一个)
composer config -g repo.packagist composer https://packagist.laravel-china.org

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

# 阿里云镜像, laravel-china 已经作废
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
  1. 当前项目添加镜像
composer config repo.packagist composer https://packagist.laravel-china.org
  1. 查看镜像
composer config -l -g

娃哈哈

https://learnku.com/laravel/t/30710

https://packagist.laravel-china.org/

https://pkg.phpcomposer.com/#how-to-use-packagist-mirror

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注