[英]When trying to install php-jwt facing trouble with auth0
我正在嘗試安裝php-jwt。 當我輸入以下命令時
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.
為了更好地理解,請在此處提供屏幕截圖。
我已經盡力了,但是找不到任何好的解決方案。
這是因為您正在嘗試安裝最新版本的php-jwt
: 4.0
,如packagist.org所示。
在這是另一個包的同一時間-似乎是auth0
是使用舊版本php-jwt
是3.0,所以你必須要安裝php-jwt
與3.0如下的版本:
composer require firebase/php-jwt:^3.0
要么
將您的auth0
軟件包更新為使用php-jwt
的最新主要版本的最新版本,如下所示:
"firebase/php-jwt" : "^4.0"
注意:在更新軟件包之前,請不要忘記備份項目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.