When trying to install the sample data via this command php bin/magento sampledata:deploy got an error

The following exception is caused by a lack of memory and not having swap configured.

Can you please help for the same?

enter image description here


Your server has a lack of memory (and not having swap configured) to work with composer.

Plese follow instruction How to add swap to resolve issue

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.