我在将此软件包composer require illuminate/notifications
安装到我的流明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]
我也试图安装流明的5.3包,但它仍然给我这个错误
答案 0 :(得分:1)
您似乎仍然安装了流明5.3
,但您希望在版本illuminate/notifications
中安装5.4
要求,也就是流明版本{{1} }。
我愿意:
5.4
5.4
,将流明升级到"laravel/lumen-framework": "5.4.*",
composer.json
composer update
OR:
composer require illuminate/notifications
..安装Lumen 5.3的软件包应该也可以。
答案 1 :(得分:0)
illuminate/notifications:^5.4
需要illuminate/mail:5.4.*
。您的项目正在使用illuminate/mail:5.3.*
(来自您的composer.json
文件)。因此,要安装illuminate/notifications:^5.4
,您需要升级illuminate/mail
。这样做:
composer require "illuminate/mail:^5.4"
之后
composer require "illuminate/notifications:^5.4"