How to fix «mmap() failed: [12] Cannot allocate memory» on a Composer command?

You can fill a claim to PayPal and try to convince them of that your violation the official Magento 2.2 system requirements and the official Mage2.PRO installation instruction is a my fault.