只是尝试运行 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
现在一切正常。

关于laravel-5 - Composer dump-autoload 或 update 在 Laravel 5.5 上导致致命错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/61236961/

10-16 18:05