Fatal error “Allowed memory size” while run setup:static-content:deploy


If you get this error when trying to run

setup:static-content:deploy

Please run below in your command line.

php -dmemory_limit=6G bin/magento setup:static-content:deploy

You can replace 6G with your own value

S.S.Niranga

Senior Tech Lead at Netstarter PTY ltd. Magento Certified Front End Developer, Certified ScrumMaster, Microsoft Certified Professional, Member of British Computer Society

Leave a Reply

  • (will not be published)