在我的Laravel应用程序根目录中的main composer.json文件中,我有以下内容:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"guzzlehttp/guzzle": "~5.3|~6.0",
"company/package": "dev"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"Company\\Package\\": "packages/company/package/src"
}
},
然后在我的包的composer.json文件中,我有这一行:
"require": {
"zizaco/entrust": "5.2.x-dev"
},
"minimum-stability": "dev"
当我从根目录运行 composer update 时,出现以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- company/package dev-feature/auth requires zizaco/entrust 5.2.x-dev -> satisfiable by zizaco/entrust[5.2.x-dev] but these conflict with your r
equirements or minimum-stability.
- company/package dev-feature/auth requires zizaco/entrust 5.2.x-dev -> satisfiable by zizaco/entrust[5.2.x-dev] but these conflict with your r
equirements or minimum-stability.
- Installation request for company/package dev-feature/auth -> satisfiable by company/package[dev-feature/auth].
我不确定究竟发生了什么?导致问题的约束或要求究竟是什么?
答案 0 :(得分:0)
我相信我发现了这个问题。在我的根composer.json文件中,我更改了以下内容,现在它可以正常工作:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"guzzlehttp/guzzle": "~5.3|~6.0",
"company/package": "dev-auth"
},