我是Laravel的初学者,我已经在我的项目中成功安装了Laravel Excel包。但是,包出现了问题,当我运行composer update
时,它显示了以下错误:
加载包含包信息的composer存储库更新依赖项锁定文件中没有可修改的内容从锁定文件安装依赖项(包括require-dev(包操作:2次安装,0次更新,0次删除
- 安装markbaker/complete(2.0.0(:提取存档
- 安装ezyang/htmlpurifier(v4.13.0(:提取存档生成优化的自动加载文件
Illuminate\Foundation\ComposerScripts:postAutoloadDumpPHP警告:未捕获错误异常:require(D:\projects\my_prroject\vendor\comporter/../markbaker/complex/classes/src/functions/abs.PHP(:无法打开流:D:\project \my_prroject \vendor/comporter\autoload_real.PHP中没有这样的文件或目录:71堆栈跟踪:#0 D:\projects\my_project\vendor\comporter\autoload_real.php(71(:composer\Util\ErrorHandler::handle#2 D:\projects\my_project\vendor\comporter\autoload_real.php(61(:composerRequiredc8412b933c3488a0bbfad0ab059a147('bede361264e2ae…','C:\Users\Mukhta…'(
#3 D:\projections\my_proProject\vendor\autoload.php(7(:ComposerAutoloaderInitdc8412b 933c3488a0bbfad0 b059a147::getLoader((#第71行D:\projects\my_project\vendor\comporter\autoload_real.php中的4警告:未捕获错误异常:require(D:\projects\my_project\vendor\comporter/../markbaker/complex/classes/src/functions/abs.php(:无法打开流:D:\project \my_proproject\vendor/comporter \autoload_real.php中没有这样的文件或目录:71堆栈跟踪:#0 D:\projects\my_project\vendor\comporter\autoload_real.php(71(:composer\Util\ErrorHandler::handle#2 D:\projects\my_project\vendor\comporter\autoload_real.php#第71行D:\projects\my_project\vendor\comporter\autoload_real.php中的4PHP致命错误:composerRequiredc8412b933c3488a0bbfad0ab059a147((:无法打开所需的"D:\projects\my_project\vendor\comporter/…"/第71行D:\projects\my_project\vendor\comporter\autoload_real.php中的markbaker/complex/classes/src/functions/abs.php'(include_path='C:\examplep\php\PEAR'(致命错误:composerRequiredc8412b933c3488a0bbfad0ab059a147((:无法打开所需的"D:\projects\my_project\vendor\comporter/"/第71行上D:\projects\my_project\vendor\comporter\autoload_real.php中的markbaker/complet/classes/src/functions/abs.php'(include_path='C:\examplep\php\PEAR'(
我知道这个包(markbaker/complete(的问题,但我无法解决这个问题。有什么帮助吗?
php&laravel版本:
PHP 7.3.27
Laravel Framework 8.37.0
从外观上看,缺少一个文件。这一行突出显示了./markbaker/complex/classes/src/functions/abs.php):
。我建议您运行dump-autoload
清除类,然后运行composer install
。可能会添加包丢失的文件。
我能够通过以下方式解决此问题:rm -rf vendor/* && composer install