Lately, my development server in Gatsby.js repeatedly crashed:
I found a similar issue on GitHub. Suggested fixes: updating Gatsby and especially updating
My problem: All my dependencies were up to date, and I didn’t have
gatsy-plugin-netlify-cms, or similar installed.
NODE_OPTIONS = "--max_old_space_size=4096 to node.js.
set -U NODE_OPTIONS --max-old-space-size=4096
If you don’t want to set an environment variable, you can pass
NODE_OPTIONS as a flag to your npm command:
npm run start --node-flags --max-old-space-size=4096--no-warnings