gpt4 book ai didi

php - 无法在 Laravel 6.5.1 上制作 "composer require laravel/ui --dev"

转载 作者:行者123 更新时间:2023-12-03 22:29:28 25 4
gpt4 key购买 nike

我收到以下错误:

Can't make "composer require laravel/ui --dev" on laravel 6.5.1. I get an error "Your requirements could not be resolved to an installable set of packages.



问题1:
  • 结论:删除 laravel/framework v6.5.1
  • 结论:不要安装laravel/framework v6.5.1

  • 安装失败,将 ./composer.json 恢复为其原始内容。

    在我的 composer.json
        "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
    "framework",
    "laravel"
    ],
    "license": "MIT",
    "require": {
    "php": "^7.2",
    "fideloper/proxy": "^4.0",
    "laravel/framework": "^6.2",
    "laravel/tinker": "^1.0",
    "laravelcollective/html": "^5.2.0",
    "tcg/voyager": "^1.3"
    },
    "require-dev": {
    "facade/ignition": "^1.4",
    "fzaninotto/faker": "^1.4",
    "mockery/mockery": "^1.0",
    "nunomaduro/collision": "^3.0",
    "phpunit/phpunit": "^8.0"
    },
    "config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
    },
    "extra": {
    "laravel": {
    "dont-discover": []
    }
    },
    "autoload": {
    "psr-4": {
    "App\\": "app/"
    },
    "classmap": [
    "database/seeds",
    "database/factories"
    ]
    },
    "autoload-dev": {
    "psr-4": {
    "Tests\\": "tests/"
    }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
    "post-autoload-dump": [
    "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
    "@php artisan package:discover --ansi"
    ],
    "post-root-package-install": [
    "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
    "@php artisan key:generate --ansi"
    ]
    },
    "repositories": {
    "hooks": {
    "type": "composer",
    "url": "https://larapack.io"
    }
    }
    }


    PHP 版本 7.2.25
    请帮忙。

    最佳答案

    laravel/ui 的第 2 版与 Laravel 的第 6 版不兼容,因此使用 composer require laravel/ui="1.*" --dev 安装第 1 版

    关于php - 无法在 Laravel 6.5.1 上制作 "composer require laravel/ui --dev",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59265377/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com