Я пытался установить tymon / jwt-auth с laravel 5.6.4, используя composer
композитор требует 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
- Conclusion: don't install barryvdh/laravel-cors v0.8.6
- Conclusion: don't install barryvdh/laravel-cors v0.8.5
- Conclusion: don't install barryvdh/laravel-cors V0.8.4
- Conclusion: don't install barryvdh/laravel-cors v0.8.3
- Conclusion: remove laravel/framework v5.6.3
- Installation request for barryvdh/laravel-cors ^0.8.2 -> satisfiable by barryvdh/laravel-cors[V0.8.4, v0.8.2, v0.8.3, v0.8.5, v0.8.6].
- Conclusion: don't install laravel/framework v5.6.3
- barryvdh/laravel-cors v0.8.2 requires illuminate/support 5.1.x|5.2.x|5.3.x -> satisfiable by illuminate/support[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- don't install illuminate/support 5.1.x-dev|don't install laravel/framework v5.6.3
- don't install illuminate/support 5.2.x-dev|don't install laravel/framework v5.6.3
- don't install illuminate/support 5.3.x-dev|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.1|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.13|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.16|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.2|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.20|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.22|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.25|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.28|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.30|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.31|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.41|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.6|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.1.8|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.0|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.19|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.21|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.24|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.25|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.26|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.27|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.28|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.31|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.32|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.37|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.43|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.45|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.6|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.2.7|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.3.0|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.3.16|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.3.23|don't install laravel/framework v5.6.3
- don't install illuminate/support v5.3.4|don't install laravel/framework v5.6.3
- Installation request for laravel/framework (locked at v5.6.3, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.3].
Установка не удалась, вернув ./composer.json к исходному содержимому.
Обновить:
Сначала я пытался composer update
команда добавления определенной версии зависимостей в файл composer.json. подобно "tymon/jwt-auth": "0.5.*"
а также "barryvdh/laravel-cors": "^0.8.2"
,
После этого я пытался composer require tymon/jwt-auth
не удаляя строки с определенной версией tymon/jwt-auth
а также barryvdh/laravel-cors
,
После удаления строк из файла composer.json с конкретными версиями tymon/jwt-auth
composer require tymon/jwt-auth
Команда работает нормально.
Спасибо
Посылка Tymon / JWT-авт пока что не предлагает стабильную версию для использования с Laravel 5.6, поэтому composer не может разрешить требования зависимости.
Если вы проверите их релизы у них есть RC (Release Candidate) с поддержкой Laravel 5.5 и 5.6. Тот, который вас заинтересует, должен быть 1.0.0-rc.2
,
Других решений пока нет …