运行命令composer install --prefer-dist / composer install / composer update

时间:2018-07-24 12:25:45

标签: php laravel docker composer-php docker-compose

composer挂起“更新依赖项(包括require-dev)” 当我运行composer install --prefer-dist或composer install或composer update时 在此问题之前,我在Macbook上安装Redis服务器,请帮助我解决该问题。 谢谢,谢谢

此处为composer.json文件:

{
    "name": "labs64/laravel-boilerplate",
    "description": "Laravel 5 Boilerplate",
    "type": "project",
    "keywords": ["php", "framework", "laravel", "laravel5", "admin", "theme", "starter", "bootstrap", "boilerplate", "docker", "template", "social-login", "nodejs"],
    "homepage": "https://github.com/Labs64/laravel-boilerplate",
    "license": "MIT",
    "authors": [
        {
            "name": "Labs64 GmbH",
            "email": "info@labs64.com",
            "homepage": "http://www.labs64.com"
        }
    ],
    "support": {
        "email": "info@labs64.com",
        "issues": "https://github.com/Labs64/laravel-boilerplate/issues",
        "wiki": "https://github.com/Labs64/laravel-boilerplate",
        "source": "https://github.com/Labs64/laravel-boilerplate",
        "docs": "https://github.com/Labs64/laravel-boilerplate"
    },
    "require": {
        "php": ">=7.0",
        "albertcht/invisible-recaptcha": "^1.4",
        "arcanedev/log-viewer": "~4.0",
        "creativeorange/gravatar": "~1.0",
        "davejamesmiller/laravel-breadcrumbs": "^3.0",
        "devdojo/chatter": "0.2.*",
        "graham-campbell/markdown": "^9.0",
        "kyslik/column-sortable": "^5.4",
        "labs64/netlicensingclient-php": "^2.3",
        "laravel/framework": "5.5.*",
        "laravel/socialite": "^3.0",
        "laravel/tinker": "~1.0",
        "laravelcollective/html": "5.5.*",
        "nahid/talk": "^2.2",
        "yajra/laravel-datatables-oracle": "~8.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~6.0",
        "barryvdh/laravel-debugbar": "^2.1",
        "barryvdh/laravel-ide-helper": "^2.2",
        "doctrine/dbal": "^2.5",
        "filp/whoops": "~2.0"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "files": [
            "config/Constants.php",
            "app/helpers.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "prefer-stable": true
}

很多时间后,它显示以下错误:-

enter image description here

1 个答案:

答案 0 :(得分:-1)

您可以尝试做composer update --prefer-dist

您的composer.lock似乎有问题,并且composer update命令将获取所有必要的依赖项