javascript heap out of memory node error


Solu­tion:

node --max--old-space-size=4096 <filename>

You need to tell node to over­write default heap size in v8. To see all the avail­able v8 flags run the fol­low­ing command:

node --v8-options

You may also like...