Laravel 5 编写器转储自动加载或更新导致Laravel 5.5出现致命错误
刚刚尝试运行一个Laravel 5 编写器转储自动加载或更新导致Laravel 5.5出现致命错误,laravel-5,composer-php,Laravel 5,Composer Php,刚刚尝试运行一个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\Plugi
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
目录,然后运行composer update——首选源代码
,然后运行composer dump autoload
现在一切正常。我删除了供应商目录和composer.lock文件。安装完execute composer后,一切正常。您似乎正在使用composer v2。如果是这样,请继续阅读 将Composer v2添加到插件接口(即
停用()
和卸载()
)
然而,kylekatarnls/update helper
将Composer降级到版本1对我来说很有用
composer self-update 1.10.22
rm -rf vendor
composer install
在我的例子中,
composer更新——再次选择source
makekylekatarnls
,问题就存在了。因此,在删除kylekatarnls
后,只需运行composer dump autoload
就足够了。这在经过数小时的搜索后非常有用。问题:
composer self-update 1.10.22
rm -rf vendor
composer install