[英]Your requirements could not be resolved to an installable set of packages. using composer
[英]Your requirements could not be resolved to an installable set of packages error in composer
在我的 laravel 应用程序中,我想使用 laravel-notification-channels /fcm 启用 fcm,这个 package 现在使用 kreait/laravel-firebase 用于 ZBF12E1515C25C7D8C0352F1415 凭据设置。AB
首先,我安装了 laravel 通知 package 没有问题,使用以下命令:
composer require laravel-notification-channels/fcm:~2.0
现在,当我尝试使用以下命令安装 laravel-firebase 时:
composer require kreait/laravel-firebase
我在命令提示符中收到以下作曲家警告:
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^3.0 for kreait/laravel-firebase
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel-notification-channels/fcm 2.1.1 requires kreait/laravel-firebase ^1.3 || ^2.1 -> satisfiable by kreait/laravel-firebase[1.3.0, 1.4.0, 1.5.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0] but these conflict with your requirements or minimum-stability.
- laravel-notification-channels/fcm 2.1.1 requires kreait/laravel-firebase ^1.3 || ^2.1 -> satisfiable by kreait/laravel-firebase[1.3.0, 1.4.0, 1.5.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0] but these conflict with your requirements or minimum-stability.
- laravel-notification-channels/fcm 2.1.1 requires kreait/laravel-firebase ^1.3 || ^2.1 -> satisfiable by kreait/laravel-firebase[1.3.0, 1.4.0, 1.5.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0] but these conflict with your requirements or minimum-stability.
- Installation request for laravel-notification-channels/fcm (locked at 2.1.1, required as ~2.0) -> satisfiable by laravel-notification-channels/fcm[2.1.1].
Installation failed, reverting ./composer.json to its original content.
我怎样才能解决这个问题?
当运行composer require laravel-notification-channels/fcm:~2.0
时,package kreait/laravel-firebase
自动安装。
当我现在运行composer require kreait/laravel-firebase
它只是说
composer require kreait/laravel-firebase
Using version ^3.0 for kreait/laravel-firebase
./composer.json has been updated
Running composer update kreait/laravel-firebase
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
错误不是来自这两个包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.