Jwt-auth: Install failed.

Created on 28 Dec 2020  Â·  9Comments  Â·  Source: tymondesigns/jwt-auth

Laravel version: 8.20.1
Php version: 8.0

When I am trying composer require tymon/jwt-auth, it return me that error below.

Using version ^0.5.12 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
- Root composer.json requires tymon/jwt-auth ^0.5.12 -> satisfiable by tymon/jwt-auth[0.5.12].
- tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.

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

Below is my composer.json file.

{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"darkaonline/l5-swagger": "^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"illuminate/support": "^8.20",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"namshi/jose": "^7.2",
"zircote/swagger-php": "^3.1"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^0.0.5",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}

Most helpful comment

@Ekenzy-101 You can add --ignore-platform-reqs to force install it works well for me.

composer require tymon/jwt-auth --ignore-platform-reqs

All 9 comments

This package does not support php 8.0 now :(
You can try use php 7.4 again

This package does not support php 8.0 now :(
You can try use php 7.4 again

How do you go about it?

@Ekenzy-101 You can add --ignore-platform-reqs to force install it works well for me.

composer require tymon/jwt-auth --ignore-platform-reqs

@Ekenzy-101 You can add --ignore-platform-reqs to force install it works well for me.

composer require tymon/jwt-auth --ignore-platform-reqs

Doesn't help if project have same dependencies with different requirements to a minimum versions :(

Ohhh ... It successfully downloaded.

@Ekenzy-101 You can add --ignore-platform-reqs to force install it works well for me.
composer require tymon/jwt-auth --ignore-platform-reqs

Doesn't help if project have same dependencies with different requirements to a minimum versio

Ohhh ... It successfully downloaded.

How did you solve it?

Which version are u using?

composer require tymon/jwt-auth:^1.0. --ignore-platform-reqs

version of what?

On Thu, 4 Feb 2021 at 07:44, Damon To notifications@github.com wrote:

Which version are u using?

composer require tymon/jwt-auth:^1.0. --ignore-platform-reqs

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tymondesigns/jwt-auth/issues/2083#issuecomment-772984104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANMNS5L23F2UIM4WZAADANTS5ICXPANCNFSM4VMIACBQ
.

composer require tymon/jwt-auth:^1.0.2
Was this page helpful?
0 / 5 - 0 ratings

Related issues

kofi1995 picture kofi1995  Â·  3Comments

marciomansur picture marciomansur  Â·  3Comments

Rasoul-Karimi picture Rasoul-Karimi  Â·  3Comments

harveyslash picture harveyslash  Â·  3Comments

johncloud200 picture johncloud200  Â·  3Comments