Overview
Swap space allows your system to utilize the hard drive to supplement capacity when RAM runs short. Composer install will fail if there is insufficient RAM available, but adding swap will allow it to complete installation.
Solution
Via the command line, you can set up and enable swap on your Debian machine via the following commands (as root):
Testing the Result
You should see the changes effected immediately, and can check via the command line: