当我尝试运行composer update
时,我遇到了以下错误我试图做composer clear
但没有帮助。适用于我的本地 Windows 机器,但不起作用,我将其部署到 centOS 机器。我不是在运行laravel,只是作曲家。
我的作曲家.json 文件:
{
"autoload": {
"psr-4": {
"App\": "/",
"App\includes\": "/includes/"
},"classmap": [
"/",
"includes/"
]
},
"require": {
"gebn/brush": "^1.1",
"rap2hpoutre/similar-text-finder": "^1.0",
"sendgrid/sendgrid": "^7.2"
}
}
通过 -v 进行错误日志
Exception trace:
() at phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php:52
RecursiveDirectoryIterator->__construct() at phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php:52
SymfonyComponentFinderIteratorRecursiveDirectoryIterator->__construct() at phar:///usr/local/bin/composer/vendor/symfony/finder/Finder.php:809
SymfonyComponentFinderFinder->searchInDirectory() at phar:///usr/local/bin/composer/vendor/symfony/finder/Finder.php:682
SymfonyComponentFinderFinder->getIterator() at phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:80
ComposerAutoloadClassMapGenerator::createMap() at phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:336
ComposerAutoloadAutoloadGenerator->generateClassMap() at phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:319
ComposerAutoloadAutoloadGenerator->addClassMapCode() at phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:266
ComposerAutoloadAutoloadGenerator->dump() at phar:///usr/local/bin/composer/src/Composer/Installer.php:303
ComposerInstaller->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:162
ComposerCommandUpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:241
SymfonyComponentConsoleCommandCommand->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:843
SymfonyComponentConsoleApplication->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193
SymfonyComponentConsoleApplication->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:254
ComposerConsoleApplication->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
SymfonyComponentConsoleApplication->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:103
ComposerConsoleApplication->run() at phar:///usr/local/bin/composer/bin/composer:56
require() at /usr/local/bin/composer:24
我
以前遇到过这个问题,解决方案是应用程序中缺少一些文件,它们被删除了"我不知道它们是如何删除的,哈哈"但我将我当前的项目与上一个项目进行了比较,我发现配置文件夹丢失了,然后我从以前的项目中复制了配置,问题解决了。