devellopah
@devellopah

Почему не получается зарекваерить jwt-auth в ларадок проекте?

linux mint 19
docker - 18.09.6
docker-compose - 1.24.0
mysql 8
laravel - 5.8.19
composer - 1.8.5

Захожу в workspace через
docker-compose exec --user=laradock workspace bash

пытаюсь подтянуть jwt-auth и происходит какая-то дичь.

laradock@195def44f1f0:/var/www$ composer require tymon/jwt-auth
Using version ^0.5.12 for tymon/jwt-auth
./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
    - Installation request for tymon/jwt-auth ^0.5.12 -> satisfiable by tymon/jwt-auth[0.5.12].
    - Conclusion: remove nesbot/carbon 2.19.0
    - Conclusion: don't install nesbot/carbon 2.19.0
    - tymon/jwt-auth 0.5.12 requires nesbot/carbon ~1.0 -> satisfiable by nesbot/carbon[1.0.0, 1.0.1, 1.1.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.2.0, 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.25.1, 1.25.3, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.26.5, 1.26.6, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.3.0, 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, 1.37.0, 1.37.1, 1.38.0, 1.38.1, 1.38.2, 1.38.3, 1.38.4, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0].
    - Can only install one of: nesbot/carbon[1.26.3, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.4, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.5, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.6, 2.19.0].
    - Can only install one of: nesbot/carbon[1.27.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.28.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.29.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.29.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.29.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.30.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.31.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.31.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.32.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.33.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.34.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.34.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.34.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.34.3, 2.19.0].
    - Can only install one of: nesbot/carbon[1.34.4, 2.19.0].
    - Can only install one of: nesbot/carbon[1.35.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.35.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.36.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.36.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.36.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.37.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.37.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.38.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.38.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.38.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.38.3, 2.19.0].
    - Can only install one of: nesbot/carbon[1.38.4, 2.19.0].
    - Can only install one of: nesbot/carbon[1.0.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.0.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.1.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.10.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.11.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.12.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.13.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.14.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.15.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.16.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.17.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.18.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.19.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.2.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.20.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.21.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.22.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.22.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.23.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.24.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.24.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.24.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.25.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.25.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.25.3, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.1, 2.19.0].
    - Can only install one of: nesbot/carbon[1.26.2, 2.19.0].
    - Can only install one of: nesbot/carbon[1.3.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.4.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.5.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.6.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.7.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.8.0, 2.19.0].
    - Can only install one of: nesbot/carbon[1.9.0, 2.19.0].
    - Installation request for nesbot/carbon (locked at 2.19.0) -> satisfiable by nesbot/carbon[2.19.0].


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


Подскажите, как пофиксить эту проблему?
  • Вопрос задан
  • 317 просмотров
Решения вопроса 1
@Barmunk
там написано что carbon должен быть версии ~1.0

Вот как это решить
https://github.com/tymondesigns/jwt-auth/issues/1819
https://github.com/tymondesigns/jwt-auth/issues/1795
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы