PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)

When Showing this type of error in your composer then first go to in

“C:\ProgramData\ComposerSetup\bin”

and open “composer.bat” and paste this below code

@echo OFF
:: in case DelayedExpansion is on and a path contains ! 
setlocal DISABLEDELAYEDEXPANSION
php -d memory_limit=-1 "%~dp0composer.phar" %*

Ajay K
Follow me