FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

330 views Asked by At

Getting heap limit allocation error. Need a clarity on how can we get through this using verdaccio config

Checked node config max-old-space-size can fix this. But want a way to fix this using verdaccio

1

There are 1 answers

0
user21396794 On

Set NODE_OPTIONS=--max-old-space-size=4096 environment variable (the size may depend on your available memory).

If you are running verdaccio using systemd, add

Environment="NODE_OPTIONS=--max-old-space-size=4096"

to the unit file, [Service] section.