composer require -w tymon/jwt-authがエラー
趣向
composer require -w tymon/jwt-auth を使用するとエラーが出てしまい
jwt-authをインストールすることができなかった。
Laravel: 8.40
PHP: 8.0
エラー
下記のエラーがでてしまう。
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.
解決
以下のコマンドで実行する。
composer require -w tymon/jwt-auth --ignore-platform-reqs
※composer require barryvdh/laravel-cors コマンドも同様でした
Author And Source
この問題について(composer require -w tymon/jwt-authがエラー), 我々は、より多くの情報をここで見つけました https://qiita.com/ryotaro_tech/items/0bebc026038a750fcaa9著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .