{"title":"next build \u3067 heap out of memory \u767a\u751f","url":"https://tnakamura.hatenablog.com/entry/2021/10/15/next-build-heap-out-of-memory","published":"2021-10-15 12:30:00","height":"190","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2021%2F10%2F15%2Fnext-build-heap-out-of-memory\" title=\"next build \u3067 heap out of memory \u767a\u751f - present\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Next.js"],"blog_title":"present","image_url":null,"version":"1.0","description":"next build \u3092\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Node \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u3067\u306f\u3001next build \u306b\u306f\u8db3\u308a\u306a\u304b\u3063\u305f\u3088\u3046\u3060\u3002 \u74b0\u5883\u5909\u6570 NODE_OPTIONS \u306b --max_old_space_size=<MB> \u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u305f\u3002 NODE_OPTIONS=--max_old_space_size=4096 \u9055\u3046\u74b0\u5883\u3067\u307e\u305f\u767a\u751f\u3057\u305f\u3068\u304d\u3001\u81ea\u5206\u306e\u30d6\u30ed\u30b0\u3092\u2026","author_name":"griefworker","author_url":"https://blog.hatena.ne.jp/griefworker/","type":"rich","blog_url":"https://tnakamura.hatenablog.com/","provider_name":"Hatena Blog","width":"100%"}