VPS侦探论坛

 找回密码
 注册
查看: 750|回复: 3

composer 阿里云的源有问题

[复制链接]
发表于 2023-6-6 18:12:29 | 显示全部楼层 |阅读模式

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

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

  10.   Problem 1
  11.     - laravel/framework[v10.10.0, ..., v10.12.0] require doctrine/inflector ^2.0.5 -> found doctrine/inflector[2.0.x-dev, 2.1.x-dev] but it does not match your minimum-stability.
  12.     - Root composer.json requires laravel/framework ^10.10 -> satisfiable by laravel/framework[v10.10.0, v10.10.1, v10.11.0, v10.12.0].

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





美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-6-7 10:31:24 | 显示全部楼层


国内composer源哪个比较好
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-6-7 17:03:28 | 显示全部楼层

可能是出于政治原因,国内的都不好用。packagist 官方镜像不算太慢,凑合还能用
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-6-7 17:05:22 | 显示全部楼层



  1. https://packagist.org/mirrors
复制代码
国内的这上面几家我都试了,还是官方当镜像顺畅点
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-21 19:43 , Processed in 0.026200 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表