您好,我正在尝试解决安装 voyager 时的一些问题。当我尝试运行 Composer require 时,出现内存不足错误。我不明白到底发生了什么。它在我的控制台上的结果:
@DESKTOP->>>>> /c/xampp/htdocs/ (master) $ Composer require tcg/voyager 对 tcg/voyager 使用版本 ^1.4 ./composer.json 已更新 加载包含包信息的 Composer 存储库 更新依赖项(包括require-dev) PHP 致命错误: phar://C:/composer/composer.phar/src/Composer/DependencyResolver/RuleSet.php 第 83 行允许的内存大小已耗尽(尝试分配 134217736 字节) 1610612736 字节`` `
也许composer.JSON有问题,我需要检查一下。你应该注意什么问题是什么 我的composer.json文件``` {
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2",
"convertapi/convertapi-php": "^1.1",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/socialite": "^4.3",
"laravel/tinker": "^1.0",
"openpayu/openpayu": "^2.2",
"paypal/rest-api-sdk-php": "^1.14",
"pragmarx/tracker": "^3.5",
"spatie/laravel-backup": "^6.8",
"spatie/pdf-to-image": "^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",
"tanmuhittin/laravel-google-translate": "^1.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"files": [
"app/Helpers/HelperFunctions.php"
],
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
一只斗牛犬
哔哔one
慕斯709654