首页 > 解决方案 > 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 上搜索以找到一些答案,但没有发现任何东西甚至可以远程关闭我在这里遇到的问题。

有什么建议么?

标签: laravel-5composer-php

解决方案


我刚刚找到了解决这个问题的方法。这是为那些有同样问题的人准备的。

我不得不删除kylekatarnls位于我的vendor目录中的目录,然后运行composer update --prefer-source,然后运行composer dump-autoload

现在一切正常。


推荐阅读