laravel-5 - Composer dump-autoload 或 update 在 Laravel 5.5 上导致致命错误
问题描述
刚刚尝试运行 a composer dum-autoload
,但最终出现以下错误,这是我以前从未遇到过的
Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /var/www/vhosts/example.com/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php on line 11
在 G 上搜索以找到一些答案,但没有发现任何东西甚至可以远程关闭我在这里遇到的问题。
有什么建议么?
解决方案
我刚刚找到了解决这个问题的方法。这是为那些有同样问题的人准备的。
我不得不删除kylekatarnls
位于我的vendor
目录中的目录,然后运行composer update --prefer-source
,然后运行composer dump-autoload
。
现在一切正常。
推荐阅读
- c++ - 通过 C++ 类的默认参数中的静态数据成员(类指针)
- go - 如何创建通用请求验证中间件
- python - 将不同类型的多个变量从数据帧传递到函数
- ruby - 无法使用 'brew install sass/sass/sass' 在 mac 上运行 sass 命令
- sql-server - 查询计划中的持续扫描导致大量基数估计错误
- spring - thymeleaf sec:authorize not working in spring boot
- python - 清除 Python 中的列表导致性能问题
- html - 如何使屏幕阅读器无法将元素识别为元素组?
- c# - 使用 iTextSharp 从 pdf 中提取图像及其名称
- swift - 如何将 RxSwift 与 NVActivityIndicatorView 一起使用?