Skip to content

Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

When I run “composer install or “composer update” command from my magento 2.4.5 root folder I am getting this error.

- Installing laminas/laminas-dependency-plugin (2.4.0): Extracting archive
PHP Fatal error:  Uncaught Error: Class "MagentoFrameworkComponentComponentRegistrar" not found in /public_html/setup/src/Magento/Setup/registration.php:9
Stack trace:
#0 /public_html/app/etc/NonComposerComponentRegistration.php(29): require_once()
#1 [internal function]: MagentoNonComposerComponentRegistration{closure}()
#2 /public_html/app/etc/NonComposerComponentRegistration.php(31): array_map()
#3 /home/admin/domains/fitnessyantra.com/public_html/app/etc/NonComposerComponentRegistration.php(34): MagentoNonComposerComponentRegistration{closure}()

When I run the same commands with no plugin i.e “composer install –no-plugins” then I am not getting the error.
Can you help me on this how can I solve this “composer install” without no-plugin issue