In my case, I need two values for NODE_OPTIONS:
NODE_OPTIONS=--max_old_space_size=4096
NODE_OPTIONS=--openssl-legacy-provider
I tried:
cross-env NODE_OPTIONS=--max_old_space_size=4096 --openssl-legacy-provider umi build
But not working.
In package.json, the following works for me-
"build": "cross-env NODE_OPTIONS=\"--max_old_space_size=4096 --openssl-legacy-provider\" umi build"
You can try like this-
NODE_OPTIONS="--max_old_space_size=4096 --openssl-legacy-provider" umi build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With