2017-03-01 27 views
0

私はphp-jwtをインストールしようとしています。次のコマンドを入力したときphp-jwtをインストールしようとするとauth0に問題が発生する

composer require firebase/php-jwt 

次のようなエラーが表示されます。

Using version ^4.0 for firebase/php-jwt 
./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability. 
    - auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability. 
    - auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability. 
    - Installation request for auth0/auth0-php (locked at 4.0.12, required as ~4.0) -> satisfiable by auth0/auth0-php[4.0.12]. 


Installation failed, reverting ./composer.json to its original content. 

ここでスクリーンショットを伝えるために、

enter image description here

私は十分に試してみたが、何か良い解決策を見つけることができませんでした。別のパッケージはphp-jwtの古いバージョンを使用しているauth0をする-seemsで同じ時間で4.0に示すようhere

:あなたはphp-jwt

の最新バージョンをインストールしようとしているためだ

答えて

1

あなたは次のようにバージョン3.0でphp-jwtをインストールする必要があります3.0

れている:

composer require firebase/php-jwt:^3.0 

OR

here:

"firebase/php-jwt" : "^4.0" 

に示すように、プロジェクトのバックアップを取ることを忘れないでくださいphp-jwtの最新メジャーバージョンを使用している最新バージョンにauth0パッケージを更新あなたのパッケージをアップデートする前に

+1

非常に素晴らしく、精巧な答えですが、簡単に提示しました。実際、答えは作曲家によって投げられたエラーメッセージにありました。私はauth0とphp-jwtの新機能なので、それは非常に複雑なものだと思っています。しかし、答えに感謝します。 –

関連する問題