gpt4 book ai didi

php - composer update failed 您的要求无法解析为一组可安装的软件包

转载 作者:行者123 更新时间:2023-12-04 18:45:28 25 4
gpt4 key购买 nike

我有这个 Composer 文件

{
"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

我收到了这个错误

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
- 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] but these conflict with your requirements or minimum-stability.



我相信错误出现在 artdarek/oauth-4-laravel 但我不知道如何解决它,请问有什么帮助吗?

最佳答案

我发现此页面 [Composer 在安装依赖项的依赖项时失败,但在直接安装依赖项时没有][1] 有帮助,它解决了我的问题,我已更改

"artdarek/oauth-4-laravel": "dev-master"


"artdarek/oauth-4-laravel": "@dev"

有谁知道有什么区别?

关于php - composer update failed 您的要求无法解析为一组可安装的软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45490848/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com