// Use upto 6 GB (So, you can change 6000 in below, based on your need)
scripts: {
"build": "node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng build",
"serve": "node --max_old_space_size=6000 ./node_modules/@angular/cli/bin/ng serve"
}