I’ve seen this before. It was related to the available system memory of the server. Composer+Magento struggle to run with anything less than 2GB.
- Check that your server meets the minimum requirements
- Check that you’ve allocated at least 2GB of memory in .htaccess (covered in the guide under Update memory_limit)
- Verify that the above is set correctly by following 2. Listing critical PHP information on this post. This will show you the true value of
memory_limit
for the local directory