composer 包ezyang/htmlpurifier/的问题

时间:2021-05-26 09:58:33

标签: php laravel composer-php

我有一个 Laravel 项目,当我想安装 Maatwebsite\Excel 包时,我能够安装它,但是当我更新我的作曲家时,ezyang/htmlpurifier 包出现问题。我无法安装它我有以下错误:

[错误异常]
要求(/home/gregory/Documents/myproject/vendor/composer/../ezyang/htmlpurifier/library/HTMLPurifier.composer.php):无法打开流:没有这样的文件或目录

为了更正这个错误,我运行了几个命令:

  • 删除 composer.lock 和 vendor 文件夹并进行 composer install
  • ezyang / htmlpurifier 包中的 require composer
  • 检查 php 扩展
  • 执行清除缓存作曲家和作曲家更新

最近作曲家更新 -v,这是结果

Exception trace:
 () at /home/gregory/Documents/myproject/vendor/composer/autoload_real.php:71
 Composer\Util\ErrorHandler::handle() at /home/gregory/Documents/myproject/vendor/composer/autoload_real.php:71
 require() at /home/gregory/Documents/myproject/vendor/composer/autoload_real.php:71
 composerRequirec835a7196025847b602ebe52d9fd1668() at /home/gregory/Documents/myproject/vendor/composer/autoload_real.php:61
 ComposerAutoloaderInitc835a7196025847b602ebe52d9fd1668::getLoader() at /home/gregory/Documents/myproject/vendor/autoload.php:7
 require_once() at /home/gregory/Documents/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php:43
 Illuminate\Foundation\ComposerScripts::postAutoloadDump() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:351
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:221
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:102
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:380
 Composer\Autoload\AutoloadGenerator->dump() at phar:///usr/bin/composer/src/Composer/Installer.php:310
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/UpdateCommand.php:243
 Composer\Command\UpdateCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:312
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:124
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:63
 require() at /usr/bin/composer:24

感谢您阅读我的问题并提前感谢您的回答

0 个答案:

没有答案