title: Fatal error: Allowed memory size of 1610612736 bytes exhausted but already allocated 1.75G
body: <p>I keep getting this memory error</p>
  
  <pre><code>PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted 
  (tried to allocate 67108864 bytes) in 
  phar:///usr/local/bin/composer/src/Composer/
     DependencyResolver/Solver.php on line 220
  </code></pre>
  
  <p>I have tried everything. Increased the memory limit a few times already. I've redownloaded composer and composer.phar. I cloned my repo on a fresh install and the first <code>composer install</code> worked. For some reason every attempt after causes this error.</p>
  
  <p>I even removed any differences in files from the master branch and my branch that could be causing this.</p>
  
  <p>PhP version 7.1.25
  Composer version 1.7.2</p>
  
  <p>Code I edited in a config.yml file</p>
  
  <pre><code>create_course_space_whitelist_expression: '"staff" in affiliations or 
  "employee" in affiliations or "faculty" in affiliations or "guest" in 
  affiliations or "GR" in student_level'
  </code></pre>
  
  <p>old code:</p>
  
  <pre><code>create_course_space_whitelist_expression: '"staff" in affiliations or 
  "employee" in affiliations or "faculty" in affiliations or "guest" in 
  affiliations
  </code></pre>
  
  <p>Not sure where else to look. I updated two created files within Vendor but I'm deleting vendor before running <code>composer install</code></p>
  
  <p>EDIT:</p>
  
  <p>I've been able to narrow down the cause. <code>composer install</code> works fine the when working with a clean version of the repo branch. However, when any change is made to the composer.json file, it fails</p>