为什么我不允许使用 composer 安装我的依赖项? [英] Why am I not allowed to install my dependencies with composer?
问题描述
我尝试运行命令composer install"在我的 laravel 项目中.我收到此错误消息:
I try running the command "composer install" within my laravel project. I get this error message:
据我所知,ezsystems/ezplatform 包甚至不在我的 composer.json 文件中.
As far as I know, the ezsystems/ezplatform package isn't even in my composer.json file.
这里是 ezsystems/ezplatform 软件包 github 链接:https://github.com/ezsystems/ezplatform
Here is the ezsystems/ezplatform package github link: https://github.com/ezsystems/ezplatform
下面是我的 composer.json
文件:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"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"
]
}
}
推荐答案
好像是composer的问题,见:https://github.com/composer/composer/issues/9191回滚你的作曲家版本 composer selfupdate --rollback
Seems to be a problem with composer, see: https://github.com/composer/composer/issues/9191
Rollback your composer version composer selfupdate --rollback
这篇关于为什么我不允许使用 composer 安装我的依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!