gpt4 book ai didi

php - 无法在我的流明中安装照明/通知

转载 作者:搜寻专家 更新时间:2023-10-31 21:22:18 28 4
gpt4 key购买 nike

我在将此包 composer require illuminate/notifications 安装到我的 Lumen 5.3.3 时遇到错误。我还尝试更新我的 PHP。

有什么我需要添加或更改的吗?

$ composer require illuminate/notifications
Using version ^5.4 for illuminate/notifications
./composer.json has been updated
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
- Conclusion: remove illuminate/mail v5.3.23
- Conclusion: don't install illuminate/mail v5.3.23
- illuminate/notifications 5.4.x-dev requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications v5.4.0 requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications v5.4.13 requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications v5.4.17 requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications v5.4.19 requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications v5.4.9 requires illuminate/mail 5.4.* -> satisfiable by illuminate/mail[5.4.x-dev].
- illuminate/notifications 5.5.x-dev requires illuminate/mail 5.5.* -> satisfiable by illuminate/mail[5.5.x-dev].
- Can only install one of: illuminate/mail[5.4.x-dev, v5.3.23].
- Can only install one of: illuminate/mail[5.5.x-dev, v5.3.23].
- Installation request for illuminate/mail (locked at v5.3.23, required as 5.3.*) -> satisfiable by illuminate/mail[v5.3.23].
- Installation request for illuminate/notifications ^5.4 -> satisfiable by illuminate/notifications[5.4.x-dev, 5.5.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].


Installation failed, reverting ./composer.json to its original content.

这是我的 composer.json:

{
"name": "laravel/lumen",
"description": "The Laravel Lumen Framework.",
"keywords": ["framework", "laravel", "lumen"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.3.*",
"vlucas/phpdotenv": "~2.2",
"krisanalfa/lumen-dingo-adapter": "^0.0.2",
"guzzlehttp/guzzle": "^6.2",
"illuminate/mail": "5.3.*",
"illuminate/notifications": "5.3.*",
"zizaco/entrust": "5.2.x-dev",
"laravelista/lumen-vendor-publish": "^2.0",
"aws/aws-sdk-php-laravel": "^3.1"

},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~5.0",
"mockery/mockery": "~0.9",
"flipbox/lumen-generator": "^5.3"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/",
"database/"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
]
},
"minimum-stability": "dev",
"prefer-stable": true
}[![enter image description here][1]][1]

我也尝试安装 lumen 5.3 的包,但它仍然给我这个错误

enter image description here

最佳答案

看来您仍然安装了 Lumen 5.3,但您想在 5.4 版本中安装 illuminate/notifications,这需要 Lumen 也将成为 5.4 版本。

我会这样做:

  • 通过在 composer.json 中设置 "laravel/lumen-framework": "5.4.*", 将 Lumen 升级到 5.4/li>
  • 之后执行 Composer 更新
  • 然后安装composer require illuminate/notifications

或者:

  • composer require illuminate/notifications:~5.3 .. 安装 Lumen 5.3 的包

应该也可以。

关于php - 无法在我的流明中安装照明/通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44195871/

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