Skip to content

Commit

Permalink
Allow v8 to allocate more heap
Browse files Browse the repository at this point in the history
Prevent out-of-memory errors encountered during `lerna bootstrap` on
certain systems by allowing Node's v8 engine to allocate more heap.  The
default, even on 64-bit architectures, is too small (1.4GB) to
complete compilation successfully, so we set it to 4GB for the bootstrap
phase.
  • Loading branch information
otterley committed Dec 12, 2018
1 parent 147d61c commit 8353e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export PATH=node_modules/.bin:$PATH

echo "============================================================================================="
echo "bootstrapping..."
lerna bootstrap --reject-cycles
env NODE_OPTIONS="--max-old-space-size=4096" lerna bootstrap --reject-cycles

0 comments on commit 8353e1b

Please sign in to comment.