Composer安装正常进行时,Composer更新挂起

时间:2019-12-21 16:54:27

标签: php laravel composer-php vagrant homestead

我正在宅基地上运行laravel项目(与VirtualBox一起使用) 以前一切正常,但是突然composer update命令开始挂起。如果我也尝试安装任何软件包,则它会挂起,但是composer install运行正常。我阅读了一些解决方案,并试图做到这一点。我将虚拟盒内存增加到4GB ,并尝试了一些命令

composer cache-clear

但是结果仍然相同。 但是,我尝试在流浪汉之外的同一台PC上使用XAMPP运行composer update

注意: composer update挂在宅基地上的每个项目上(而不是特定项目上)

我的composer.json

    {
    "name": "xxx",
    "type": "project",
    "description": "E-commerce app",
    "keywords": [
        "xxx",
        "books"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.1.3",
        "arcanedev/log-viewer": "4.7.*",
        "arcanedev/no-captcha": "^5.0",
        "brackets/admin-listing": "^2.0",
        "brackets/admin-ui": "^3.0",
        "doctrine/dbal": "^2.9",
        "fideloper/proxy": "^4.0",
        "hieu-le/active": "^3.5",
        "laravel/framework": "5.8.*",
        "laravel/socialite": "^4.0",
        "laravel/telescope": "^2.1",
        "laravel/tinker": "^1.0",
        "laravelista/comments": "^3.1",
        "plank/laravel-mediable": "^2.9",
        "spatie/laravel-analytics": "^3.7",
        "spatie/laravel-newsletter": "^4.5"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "laravel/dusk": "^5.0",
        "laravel/homestead": "^8.2",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.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"
        ],
        "files" : [
            "tests/utilities/functions.php"
        ]
    },
    "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"
        ]
    }
}

0 个答案:

没有答案