Q:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

"scripts": {
    "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --configuration=prod",
}
4
"build-serve": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"
0
# Assuming, this is a node issue...

# Change the following at the top of your script from
#!/usr/bin/env node

# to
#!/usr/bin/env node --max-old-space-size=1024

# If that isn't enough memory, simply double it until it is
1

New to Communities?

Join the community