Javascript Heap angular fora da memória

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