当尝试安装php-jwt时遇到auth0问题 [英] When trying to install php-jwt facing trouble with auth0

查看:271
本文介绍了当尝试安装php-jwt时遇到auth0问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装php-jwt.当我输入以下命令

I'm trying to install php-jwt. When I enter the following command

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.

为更好地理解,请在此处提供屏幕截图.

For better understanding giving the screenshot here.

我已经尽力了,但是找不到任何好的解决方案.

I've tried enough but couldn't find any good solution.

推荐答案

那是因为您正在尝试安装php-jwt的最新版本,即4.0,如

that's because your are trying to install the latest version of php-jwt which is: 4.0 as shown at packagist.org.

与此同时,这是另一个软件包-似乎auth0使用的是php-jwt的旧版本,它是3.0,因此您将必须安装3.0版的php-jwt,如下所示:

In the same time which is another packages - seems to be auth0 is using older version of php-jwt which is 3.0, so you will have to install php-jwt with the version 3.0 as follows:

composer require firebase/php-jwt:^3.0

OR

使用php-jwt的最新主要版本将auth0软件包更新为最新版本,如

update your auth0 package to the latest version which is using the latest major version of php-jwt as shown in here:

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

注意:更新软件包之前,请不要忘记备份项目.

这篇关于当尝试安装php-jwt时遇到auth0问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆