hutaoseven 发表于 2023-6-6 18:12:29

composer 阿里云的源有问题

自从 https://repo.packagist.org 站队 WKL ,阿里云的 composer 源就更新不及时,取消才正常

root@seven:/opt/www# composer create-project laravel/laravel
Creating a "laravel/laravel" project at "./laravel"
Installing laravel/laravel (v10.2.2)
- Installing laravel/laravel (v10.2.2): Extracting archive
Created project in /opt/www/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
    - laravel/framework require doctrine/inflector ^2.0.5 -> found doctrine/inflector but it does not match your minimum-stability.
    - Root composer.json requires laravel/framework ^10.10 -> satisfiable by laravel/framework.

root@seven:/opt/www# rm -rf laravel/
root@seven:/opt/www# composer config -g --unset repos.packagist
root@seven:/opt/www# composer create-project laravel/laravel
Creating a "laravel/laravel" project at "./laravel"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v10.2.2)
- Installing laravel/laravel (v10.2.2): Extracting archive
Created project in /opt/www/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 108 installs, 0 updates, 0 removals
- Locking brick/math (0.11.0)
- Locking dflydev/dot-access-data (v3.0.2)





licess 发表于 2023-6-7 10:31:24

国内composer源哪个比较好

hutaoseven 发表于 2023-6-7 17:03:28

可能是出于政治原因,国内的都不好用。packagist 官方镜像不算太慢,凑合还能用

hutaoseven 发表于 2023-6-7 17:05:22

https://packagist.org/mirrors 国内的这上面几家我都试了,还是官方当镜像顺畅点
页: [1]
查看完整版本: composer 阿里云的源有问题