Js heap out of memory on running angular 13 project

Developer10 Ishtech - Aug 26 - - Dev Community

Initially my angular project was in the version 10. i had successfully upgraded to v12 by referring the angular upgrade guide . I also upgraded the node version and typescript version respectively. I had upgraded the version to V13 by running these commands

1.npm install --save-dev @angular/cli@13
2.ng update @angular/core@13 --force @angular/cli@13
3.npm install typescript@4.4.4
4.npm install @angular-devkit/build-angular@13.0.4
5.npm cache clean --force
6.npm install
7.ng serve

And iam gettin this error 'Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory' on ng serve.How to resolve this issue

.
Terabox Video Player