The PRE_INSTALL_CMD event occurs before the install command is executed.
The event listener method receives a Composer\Script\Event instance.
public const PRE_INSTALL_CMD = 'pre-install-cmd';