0
0

More than 3 years have passed since last update.

composer require -w tymon/jwt-authがエラー

Last updated at Posted at 2021-08-28

趣向

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 コマンドも同様でした

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0