-1

我想运行我从 Gitlab 存储库中克隆的 laravel 应用程序。但是,在运行composer update命令时将我抛出错误。

环境:

php -v: PHP 8.0.1

composer --version: 2.0.9

我知道 PHP 8 还没有提供对所有包的支持。但仍在寻找最小的工作解决方案来在本地机器上运行我的项目。

我尝试了 laravel 的以下文章。但也无法安装“fakerphp/faker”。

  Problem 1
    - tymon/jwt-auth[1.0.0-alpha.2, ..., 1.0.0-rc.4.1] require php ^5.5.9 || ^7.0 -> your php version (8.0.1; overridden via config.platform, same as actual) does not satisfy that requirement.
    - tymon/jwt-auth[1.0.0-rc.5, ..., 1.0.2] require php ^5.5.9|^7.0 -> your php version (8.0.1; overridden via config.platform, same as actual) does not satisfy that requirement.
    - doctrine/inflector[v1.2.0, ..., 1.2.x-dev] require php ^7.0 -> your php version (8.0.1; overridden via config.platform, same as actual) does not satisfy that requirement.
    - doctrine/inflector[v1.3.0, ..., 1.3.x-dev] require php ^7.1 -> your php version (8.0.1; overridden via config.platform, same as actual) does not satisfy that requirement.
    - doctrine/inflector[1.4.0, ..., 1.4.1, 2.0.0, ..., 2.0.1] require php ^7.2 -> your php version (8.0.1; overridden via config.platform, same as actual) does not satisfy that requirement.
    - tymon/jwt-auth 1.0.x-dev is an alias of tymon/jwt-auth dev-develop and thus requires it to be installed too.
    - Conclusion: don't install tymon/jwt-auth dev-develop (conflict analysis result)


composer.json


    "require": {
        "php": "^7.4|^8.0",
        "ext-zip": "*",
        "consoletvs/charts": "^7.1",
        "facade/ignition": "^2.5",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^7.2",
        "intervention/image": "^2.5",
        "laravel/framework": "^8.14",
        "laravel/passport": "^10.0",
        "laravel/tinker": "^2.5",
        "laravel/ui": "^3.1",
        "phpoffice/phpspreadsheet": "^1.16",
        "sentry/sentry-laravel": "^2.3",
        "tymon/jwt-auth": "^1.0",
        "zanysoft/laravel-zip": "^1.0"
    },

我什至删除了我的composer.lock并尝试运行composer install但仍然出现错误。

4

1 回答 1

0

我想感谢@RWD 指出了确切的问题。

拆包后"tymon/jwt-auth": "^1.0。它正在更新。

PHP 8 尚不提供支持

于 2021-01-28T15:51:46.970 回答