FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

Last updated on

I was recently working on my new project and thought I will throw material design icons into the mix. I’m using jspm so I just issued:

1
jspm install material-design-icons

Unfortunately the result was not what I expected:

1
2
3
4
5
6
[kyrisu@chronos top_secret_project]$ jspm install material-design-icons
Updating registry cache...
Looking up github:google/material-design-icons
Downloading github:google/material-design-icons@2.0.0
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)

Most likely the out of memory exception is caused by the size of the package jspm is trying to download. (Good job Sherlock!)

Maximum node memory limit is set at 1024MB on 32bit systems and 1.74GB (source) on 64bit systems. For some reason downloading material design icons is hitting this limit so let’s try to make it bigger:

1
2
3
4
5
6
7
8
9
10
11
12
[kyrisu@chronos top_secret_project]$ node --max-old-space-size=2048 /usr/bin/jspm install material-design-icons
Updating registry cache...
Looking up github:google/material-design-icons
Downloading github:google/material-design-icons@2.0.0

warn Main entry point not found for github:google/material-design-icons@2.0.0.
Adjust this property in the package.json or with an override, setting "main": false if this is the intention.

ok Installed material-design-icons as github:google/material-design-icons@^2.0.0 (2.0.0)
ok Install tree has no forks.

ok Install complete.

Eureka! :) Now that we have this problem out of the way.. let’s go back to coding…

Comments