Угловая куча JavaScript Out из памяти

Add the command to package.json file:
"build-serve": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"

and run as:
 npm run build-serve
Frankely