symfony 脚本资源:安装返回错误代码255 - Shopware 6.5更新

webghufk  于 2023-08-06  发布在  PWA
关注(0)|答案(1)|浏览(160)

从Shopware 6.4更新到6.5时,我将symfony/flex添加到composer.json。运行composer update --with-all-dependencies --no-scripts可以工作,但composer update --with-all-dependencies不行。它返回以下错误:

Executing script assets:install [KO]
 [KO]
Script assets:install returned with error code 255
!!  PHP Fatal error:  Uncaught Error: Class "Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle" not found in /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php:97
!!  Stack trace:
!!  #0 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/symfony/http-kernel/Kernel.php(331): Shopware\Core\Kernel->registerBundles()
!!  #1 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php(163): Symfony\Component\HttpKernel\Kernel->initializeBundles()
!!  #2 /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/bin/console(74): Shopware\Core\Kernel->boot()
!!  #3 {main}
!!    thrown in /home/mws/Dokumente/projekte/academy.rotkaeppchen-mumm.de/vendor/shopware/core/Kernel.php on line 97
!!  
Script @auto-scripts was called via post-update-cmd

字符串
是什么导致了这个错误,我该如何修复它?

7vux5j2d

7vux5j2d1#

sensio/framework-extra-bundlehas been removed as a dependency。如果您按照迁移到flex模板的说明进行操作,则不需要执行此操作,但是如果它仍然出现在composer.jsonconfig/bundles.php中的任何一个或两个中,则应该能够安全地将其从composer.jsonconfig/bundles.php中删除。

相关问题