From e0ae517a24beb2d80f2064e18fdd1d3b4651551a Mon Sep 17 00:00:00 2001 From: bun <73948280+bun913@users.noreply.github.com> Date: Sat, 22 Jul 2023 00:55:53 +0900 Subject: [PATCH] docs(contributing): document how to get around node out of memory error (#26465) Closes #26415 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1356abe3eb3e6..2a7567e8d64bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,6 +108,8 @@ Note: `lerna` uses a local cache by default. If your build fails, you can fix the issue and run the command again and it will not rerun any previously successful steps. +Note: If you encounter `ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`, please try running the command with increased memory by using `export NODE_OPTIONS="--max-old-space-size=8192"`. + At this point, you can run build and test the `aws-cdk-lib` module by running ```console