How do I determine the correct “max-old-space-size” for node.js?

后端 未结 4 1594
别跟我提以往
别跟我提以往 2020-12-07 11:52

I\'m having some trouble to understand how Node.js acts based on the parameter max-old-space-size.

In my case, for example, I\'m running two t2.sma

4条回答
  •  时光说笑
    2020-12-07 12:06

    If you just want to make it work from the project you are working on, Follow the two steps:

    1. In your project cd to node_module/@angular cd node_module/@angular

    2. Now run the below command export NODE_OPTIONS=--max-old-space-size=8192

提交回复
热议问题