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

Is a manual install not possible?