0

While running any angular commands i am getting this error > npm ERR! ENOMEM: not enough memory, read

any fix for this??

refer image

Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
spartarn-07
  • 1
  • 1
  • 1
  • 1
  • 1
    Does this answer your question? [Node.js catch ENOMEM error thrown after spawn](https://stackoverflow.com/questions/26193654/node-js-catch-enomem-error-thrown-after-spawn) – Praveen Kumar Purushothaman Jan 26 '21 at 10:24
  • thanks praveen..it is not related to my question ,when i am trying to build my application i am getting this error ..it is not related to running node files – spartarn-07 Jan 26 '21 at 10:31

2 Answers2

2

export NODE_OPTIONS=--max-old-space-size=8192

0

You will need to adjust the max memory ceiling in your node builds to avoid this issue. Look to the following support article describes how to accomplish this :

https://support.circleci.com/hc/en-us/articles/360009208393-How-can-I-increase-the-max-memory-for-Node-

Zoubeir
  • 86
  • 3