Composer Laravel 安装错误:您的需求无法解析为一组可安装的软件包
Posted
技术标签:
【中文标题】Composer Laravel 安装错误:您的需求无法解析为一组可安装的软件包【英文标题】:Composer Laravel Install Error: Your requirements could not be resolved to an installable set of packages 【发布时间】:2016-11-20 09:20:21 【问题描述】:我正在尝试使用 composer 安装 Laravel。运行 create-project 命令时出现此错误。
composer create-project laravel/laravel --prefer-dist appName
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
laravel/framework v5.2.9 requires symfony/http-foundation 2.8.*|3.0.* -> satisfiable by symfony/http-foundation[2.8.x-dev, 3.0.x-dev] but these conflict with your requirements or minimum-stability.
# Same error with many other versions (see gist)
Installation request for laravel/framework 5.2.* -> satisfiable by laravel/framework[v5.2.0, v5.2.1, v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.20, v5.2.21, v5.2.22, v5.2.23, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.29, v5.2.3, v5.2.30, v5.2.31, v5.2.32, v5.2.33, v5.2.34, v5.2.35, v5.2.36, v5.2.37, v5.2.38, v5.2.39, v5.2.4, v5.2.5, v5.2.6, v5.2.7, v5.2.8, v5.2.9].
我也尝试通过克隆 Laravel 存储库并运行 composer install 命令进行安装,但仍然遇到同样的错误。
我创建了一个gist 以获取完整的错误消息。难道我做错了什么?我尝试清除作曲家缓存和所有内容。任何想法如何解决此错误?
【问题讨论】:
【参考方案1】:这是作曲家标记的错误。现在试试,应该可以了。
【讨论】:
以上是关于Composer Laravel 安装错误:您的需求无法解析为一组可安装的软件包的主要内容,如果未能解决你的问题,请参考以下文章
Laravel Composer 安装失败,在 ubuntu 中出现错误
Composer 更新:您的要求无法解决为一组可安装的软件包
composer requireIllumination/support 会给出一个错误,例如“您的需求无法解析为一组可安装的软件包”。