heap memory increase nodejs code example
Example 1: increase node heap size
export NODE_OPTIONS=--max_old_space_size=4096
Example 2: nodejs increase heap size
NODE_OPTIONS=--max-old-space-size=8192 npm start
export NODE_OPTIONS=--max_old_space_size=4096
NODE_OPTIONS=--max-old-space-size=8192 npm start