Hey I keep getting this error when I install try to install
Problem 1
- Conclusion: remove phpseclib/phpseclib 2.0.1
- Installation request for tymon/jwt-auth ^0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].
- Conclusion: don't install phpseclib/phpseclib 0.3.10
- Conclusion: don't install phpseclib/phpseclib 2.0.1|install phpseclib/phpseclib 0.3.10
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- namshi/jose 5.0.0 requires phpseclib/phpseclib ~0.3 -> satisfiable by phpseclib/phpseclib[0.3.0, 0.3.1, 0.3.10, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9].
- namshi/jose 5.0.1 requires phpseclib/phpseclib ~0.3 -> satisfiable by phpseclib/phpseclib[0.3.0, 0.3.1, 0.3.10, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9].
- namshi/jose 5.0.2 requires phpseclib/phpseclib ~0.3 -> satisfiable by phpseclib/phpseclib[0.3.0, 0.3.1, 0.3.10, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9].
- Can only install one of: phpseclib/phpseclib[0.3.0, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.1, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.5, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.6, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.7, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.8, 2.0.1].
- Can only install one of: phpseclib/phpseclib[0.3.9, 2.0.1].
- Installation request for phpseclib/phpseclib == 2.0.1.0 -> satisfiable by phpseclib/phpseclib[2.0.1].
You need to upgrade to namshi/jose 6.x or 7.x.
No bug. This package already uses 6.x. Conclusion: you are trying to install, an out of date version of this package.
Make sure you use the latest dev version of this, and not the alpha one.
Yes you are right, looks like one packages have as decencies the same library with different versions...
Because when I do that I get this:
Problem 1
- Installation request for tymon/jwt-auth ^0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2] but these conflict with your requirements or minimum-stability
My required packages are:
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"intervention/image": "^2.3.1",
"jenssegers/agent": "v2.1.7",
"namshi/jose": "6.*",
"rcrowe/twigbridge": "^0.9.1",
"barryvdh/laravel-dompdf": "0.6.*",
"toin0u/geotools-laravel": "~1.0",
"toin0u/geocoder-laravel": "@stable",
"bugsnag/bugsnag-laravel": "1.*",
"pda/pheanstalk": "3.0.*",
"googleads/googleads-php-lib": "6.2.*",
"indatus/dispatcher": "1.*",
"doctrine/dbal": "^2.5",
"laracasts/testdummy": "~2.3.2",
"predis/predis": "~1.0",
"kryptonit3/pusher": "dev-master",
"shooka/laravel-modelevents": "^0.2.0",
"dingo/api": "1.0.x@dev",
"laravelcollective/remote": "5.2.*"
And the full error is:
composer require tymon/jwt-auth --sort-packages --prefer-source --update-no-dev
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^0.5.9 for tymon/jwt-auth
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for tymon/jwt-auth ^0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2] but these conflict with your requirements or minimum-stability
Installation failed, reverting ./composer.json to its original content.
and if I try to install "namshi/jose": "dev-master", still get the same error:
Problem 1
- Installation request for tymon/jwt-auth ^0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2] but these conflict with your requirements or minimum-stability
Looks like is an issues with "laravelcollective/remote": "5.2.*"
It is because the laravelcollective/remote package uses a newer version of phpseclib than jwt-auth does. The composer.json should be updated to use the newest stable version of namshi/jose.
@shooka You are right. @tymondesigns needs to update the package dependencies.
@ErvinLlojku It seems to have been fixed in #681. Now we just need this to be released.
All works properly now in alpha 馃憤
The wiki still... https://github.com/tymondesigns/jwt-auth/wiki/Installation
I know this issue is closed. I did install the latest version namshi.jose 7.2.3, but still my dependencies are not resolved. Here is what I get.
Using version ^0.5.11 for tymon/jwt-auth
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for tymon/jwt-auth ^0.5.11 -> satisfiable by tymon/jwt-auth[0.5.11].
- Conclusion: remove namshi/jose 7.2.3
- Conclusion: don't install namshi/jose 7.2.3
- tymon/jwt-auth 0.5.11 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- Can only install one of: namshi/jose[5.0.0, 7.2.3].
- Can only install one of: namshi/jose[5.0.1, 7.2.3].
- Can only install one of: namshi/jose[5.0.2, 7.2.3].
- Installation request for namshi/jose (locked at 7.2.3) -> satisfiable by namshi/jose[7.2.3].
Installation failed, reverting ./composer.json to its original content.
OK I was able to fix it by requiring "tymon/jwt-auth": "1.0.0-beta.3"
@aftabnaveed Thanks!
Worked for me!
hello i'm just upgrading laravel from 5.8 to 6 and in my composer namshi/jose this package is not mentioned yet while updating composer i got error
Problem 1
- namshi/jose 5.0.2 requires phpseclib/phpseclib ~0.3 -> no matching package found.
- namshi/jose 5.0.1 requires phpseclib/phpseclib ~0.3 -> no matching package found.
- namshi/jose 5.0.0 requires phpseclib/phpseclib ~0.3 -> no matching package found.
Most helpful comment
OK I was able to fix it by requiring
"tymon/jwt-auth": "1.0.0-beta.3"