DEV Community

loading...

Discussion on: Fix of Angular-cli 'JavaScript heap out of memory' error while running 'ng serve'

Collapse
koscheyscrag profile image
Andrei Fedotov Author

The root of this problem lies in the insufficient amount of allocated memory for the application. This can happen when, for example, an application is quite large like an enterprise application. And there is not able to specify the heap allocation size with the help of ng command. However Node can be used not only to serve the application but also to perform such things like allocating more memory to the app.