diff --git a/README.md b/README.md index 3e1e4f3..ee17da4 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,29 @@ This will download the latest release of Address. Use 8.1.x-dev instead of ~8.1 to get the -dev release instead. See https://www.drupal.org/node/2404989 for more information. + +3. Troubleshooting Address Libraries Installation + +At times this command hangs a long time or just fails. + ```sh + composer require "drupal/address ~8.1" + ``` +Add -vvv + ```sh + composer require "drupal/address ~8.1" -vvv + ``` +Getting errors : + +Fatal error: Allowed memory size +Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - + +The workaround for these errors is to execute composer with more or maximum available memory the system can provide. + +Idea: + ```sh + php -d memory_limit=-1 [composer-file] require "drupal/address ~8.1" -vvv + ``` +Concrete Examples : + +php -d memory_limit=-1 /usr/local/bin/composer require "drupal/address ~8.1" -vvv +php -d memory_limit=-1 /usr/local/bin/composer.phar require "drupal/address ~8.1" -vvv