probably not a problem with npm. There is likely additional logging output above. code example
Example: This is probably not a problem with npm. There is likely additional logging output above.
node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build --prod