magento2laminas-dependency-plugin

Magento 2 Fatal Error when running composer:install


  1. Clone fresh Magento 2 instance; 2.Run composer:install

Fatal Error: PHP Fatal error: Uncaught Error: Undefined class constant 'PRE_COMMAND_RUN'


Solution

  • This was an issue with Composer, By installing latest version of Composer solved it. The bug for the constant variable PRE_COMMAND_RUN is raised and closed.