Я пытаюсь запросить пакет композитора larabook/gateway
, запустив composer require larabook/gateway
. Я использую Laravel 5.8, php 7 и версию ^3.3 для larabook/gateway. Однако это приводит к следующей ошибке:
./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 packagesProblem 1
- Conclusion: don't install larabook/gateway 3.3.4
- Conclusion: don't install larabook/gateway 3.3.3
- Conclusion: don't install larabook/gateway 3.3.2
- Conclusion: don't install larabook/gateway 3.3.1
- Conclusion: remove nesbot/carbon 2.16.3
- Installation request for larabook/gateway ^3.3 -> satisfiable by larabook/gateway[3.3, 3.3.1, 3.3.2, 3.3.3, 3.3.4].
- Conclusion: don't install nesbot/carbon 2.16.3
- larabook/gateway 3.3 requires nesbot/carbon ~1.20 -> satisfiable by nesbot/carbon[1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.24.1, 1.24.2, 1.25.0, 1.26.0, 1.26.1, 1.26.2, 1. 26.3, 1.26.4, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.30.0, 1.31.0, 1.31.1, 1.32.0, 1.33.0, 1.34.0, 1.34.1, 1.34.2, 1.34.3, 1.34.4, 1.35.0, 1.35.1, 1.36.0, 1.36.1, 1.36.2].
- Can only install one of: nesbot/carbon[1.26.3, 2.16.3].- Installation request for nesbot/carbon (locked at 2.16.3) -> satisfiable by nesbot/carbon[2.16.3].
Installation failed, reverting ./composer.json to its original content.
Не могли бы вы помочь мне узнать, что вызывает эту ошибку и как ее предотвратить.
У вас (вероятно) есть запись в вашем файле композитора для nesbot/carbon
, которая разрешается в версию 2.16.3
, в то время как larabook/gateway
требуется тот же пакет в версии ~1.20
, версия, на которую заблокирован ваш композитор, не удовлетворяет этому требованию. Чтобы решить эту проблему, вам нужно либо удалить вашу прямую версию nesbot/carbon
(обратите внимание, что это может привести к поломке вашего кода), либо узнать у сопровождающих larabook/gateway
, могут ли они поддерживать 2.16.3
версию пакета carbon
.