• 0

javascript heap out of memory node error


Solution:
node --max--old-space-size=4096 <filename>
You need to tell node to overwrite default heap size in v8. To see all the available v8 flags run the following command:
node --v8-options