MAMP memory
If you installed a new MAMP, your default setting are too low. You have to edit the correct .INI file of your chosen PHP version! It should be located here:
Example for php7.1.8
Applications/MAMP/bin/php/php7.1.8/conf/php.ini
Edit the file and search for:
memory_limit = 32M
I would suggest a value of 512M instead. Save the file.
Unlimited memory: set
memory_limit = -1
You can check if this value has been updated by cd-ing into the htdocs folder and
php -i | grep memory_limit
Restart the server/MAMP app