我有一份作曲家档案
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"guzzlehttp/guzzle": "~4.0",
"zizaco/confide": "~4.0@dev",
"zizaco/entrust": "1.2.*@dev",
"way/generators": "~2.0",
"zurb/foundation": "5.0.3",
"artdarek/oauth-4-laravel": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "4.4.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
当我跑的时候
composer update
我犯了这个错误
加载具有包信息更新依赖项(包括require dev)的composer存储库无法将您的需求解析为可安装的包集。
Problem 1
- Installation request for artdarek/oauth-4-laravel dev-master -> satisfiable by artdarek/oauth-4-laravel[dev-master].
- artdarek/oauth-4-laravel dev-master requires lusitanian/oauth dev-master -> satisfiable by
lusitanian/oauth[dev master],但这些与您的需求或最低稳定性冲突。
我相信错误是在artdarek/oauth-4-laravel,但我不知道如何重新爱上它,任何帮助请?
我发现此页面[Composer在安装依赖项的依赖项时失败,但在直接安装依赖项时失败][1]很有帮助,它解决了我的问题,我已更改
"artdarek/oauth-4-laravel": "dev-master"
到
"artdarek/oauth-4-laravel": "@dev"
有人知道有什么区别吗?
尝试将“lusitanian/oauth”:“dev master”
添加到require
列表中。仅供参考,最好使用特定版本,因为您正在寻求稳定性:)