NODE_OPTIONS="--max-old-space-size=4096"

I need advice to debug deploy Netlify App

The following error has occured while deploying:

7:20:58 PM: npm ERR! portfolio@0.1.0 build: node --max_old_space_size=4096 node_modules/.bin/react-scripts build

Apparently I have to set the environment variable like this:
NODE_OPTIONS="–max-old-space-size=4096
but which part of this line is key and which part is value?

Setting is like this:
key: NODE_OPTIONS
value: “–max-old-space-size=4096”

didn’t work. How to set this up correctly?

1 Like

The build log is not publicly visible.

However, the EV should probably be set like this:

Key: NODE_OPTIONS
Value: --max-old-space-size=4096

I’m not very sure if using 4GB RAM during build is acceptable or no (or maybe that limit is for functions, I don’t remember well).

1 Like