try running the build with this
node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve
or other way is to add this to the package.json
"build-serve": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"
where 8048 is the max heap size.
注意:本文归作者所有,未经作者允许,不得转载