当我尝试下载 spatie/laravel-medialibrary:^10.0.0 时,我收到一条消息

问题描述 投票:0回答:1
  Problem 1
    - Root composer.json requires spatie/laravel-medialibrary 10.0.0 -> satisfiable by spatie/laravel-medialibrary[10.0.0].
    - spatie/laravel-medialibrary 10.0.0 requires illuminate/bus ^9.0 -> found illuminate/bus[v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The skeleton application for the Laravel framework.",
    "keywords": ["laravel", "framework"],
    "license": "MIT",
    "require": {
        "php": "^8.1",
        "astrotomic/laravel-translatable": "^11.13",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^10.10",
        "laravel/sanctum": "^3.3",
        "laravel/tinker": "^2.8",
        "mcamara/laravel-localization": "^2.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/breeze": "^1.29",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.18",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^7.0",
        "phpunit/phpunit": "^10.1",
        "spatie/laravel-ignition": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true,
            "php-http/discovery": true
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}

我按照以下步骤操作:

  • 删除
    composer.lock
  • composer update
  • composer require "spatie/laravel-medialibrary:^10.0.0"

laravel 版本 10

laravel
1个回答
0
投票

使用此命令已解决该问题:composer require spatie/laravel-medialibrary:^10.15

© www.soinside.com 2019 - 2024. All rights reserved.