How to solve JavaScript heap out of memory issue in Angular project

How to solve JavaScript heap out of memory issue in Angular project