If you setup a file based swapfile using something like dphys-swapfile then that should overcome the issue. On a 512MB system it will create a 1GB swap that can be used for overfill. I had another node.js install crap out on me with just 512MB of ram but doing the swap overcame that and it was fine after.
R
Robert Pendell
@Robert Pendell