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

Shell
"scripts": {
    "ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --configuration=prod",
}"build-serve": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"# 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
Source

Also in Shell: