Jwt-auth: Having conflict issues while installing jwt-auth in laravel 8.19.0

Created on 24 Dec 2020  路  3Comments  路  Source: tymondesigns/jwt-auth

Having conflict issues while installing jwt-auth
I don't know if the jwt-auth isn't compatible with my laravel version or is it something else. I'm pretty new at laravel.

PS C:\xampp\htdocsmyproj> composer require tymon/jwt-auth
Using version ^1.0 for tymon/jwt-auth
./composer.json has been updated
Running composer update tymon/jwt-auth
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- tymon/jwt-auth[dev-develop, 1.0.2] require lcobucci/jwt <3.4 -> found lcobucci/jwt[1.0.0, 1.0.1, 1.0.2, 1.1.0, 2.0.0, ..., 2.1.x-dev, 3.0.0, ..., 3.3.x-dev] but it conflicts with your root composer.json require (^4.0).
- tymon/jwt-auth[1.0.0-alpha1, ..., 1.0.0-alpha.2] require illuminate/auth 5.1.* || 5.2.* -> found illuminate/auth[v5.1.1, ..., 5.2.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth[1.0.0-alpha.3, ..., 1.0.0-beta.1] require illuminate/auth 5.1.* || 5.2.* || 5.3.* -> found illuminate/auth[v5.1.1, ..., 5.3.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth[1.0.0-beta.2, ..., 1.0.0-beta.3] require illuminate/auth 5.1.* || 5.2.* || 5.3.* || 5.4.* -> found illuminate/auth[v5.1.1, ...,
5.4.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth 1.0.0-rc.1 requires illuminate/auth 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* -> found illuminate/auth[v5.1.1, ..., 5.5.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth 1.0.0-rc.2 requires illuminate/auth 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* -> found illuminate/auth[v5.1.1, ..., 5.6.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth 1.0.0-rc.3 requires illuminate/auth 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* -> found illuminate/auth[v5.1.1, ..., 5.7.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth[1.0.0-rc.4, ..., 1.0.0-rc.4.1] require illuminate/auth ^5.1 -> found illuminate/auth[v5.1.1, ..., 5.8.x-dev] but these were not
loaded, likely because it conflicts with another require.
-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth 1.0.0 requires illuminate/auth ^5.2|^6|^7 -> found illuminate/auth[v5.2.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
- tymon/jwt-auth 1.0.1 requires lcobucci/jwt ^3.2 -> found lcobucci/jwt[3.2.0, ..., 3.4.x-dev] but it conflicts with your root composer.json require (^4.0).
- tymon/jwt-auth 1.0.x-dev is an alias of tymon/jwt-auth dev-develop and thus requires it to be installed too.
- Root composer.json requires tymon/jwt-auth ^1.0 -> satisfiable by tymon/jwt-auth[1.0.0-alpha1, ..., 1.0.x-dev (alias of dev-develop)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Thanks for any help.....

Most helpful comment

Tried again
Laravel Framework 8.19.0
PS C:\xampp\htdocsmyproj> composer require tymon/jwt-auth 2.0.x-dev
./composer.json has been updated
Running composer update tymon/jwt-auth
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires tymon/jwt-auth 2.0.x-dev -> satisfiable by tymon/jwt-auth[2.0.x-dev].
- tymon/jwt-auth 2.0.x-dev requires lcobucci/jwt ^3.2 -> found lcobucci/jwt[3.2.0, ..., 3.4.x-dev] but it conflicts with your root composer.json
require (^4.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

All 3 comments

Tried again
Laravel Framework 8.19.0
PS C:\xampp\htdocsmyproj> composer require tymon/jwt-auth 2.0.x-dev
./composer.json has been updated
Running composer update tymon/jwt-auth
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires tymon/jwt-auth 2.0.x-dev -> satisfiable by tymon/jwt-auth[2.0.x-dev].
- tymon/jwt-auth 2.0.x-dev requires lcobucci/jwt ^3.2 -> found lcobucci/jwt[3.2.0, ..., 3.4.x-dev] but it conflicts with your root composer.json
require (^4.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

+1

Any solution?
Laravel Framework 8.32.1

I have the same problem

Was this page helpful?
0 / 5 - 0 ratings