As previously discussed, the option to increase the Node.js stack size is --stack-size. Apparently the unit is kilobytes. However, when I try any value higher than 3000, it crashes on loading. That's on Windows. People on Linux are reporting it can't go higher than 8192.
How do you increase the stack size beyond these values?
Edit: the actual max is 1 megabyte. For some reason, 3 megabytes appears to be accepted but then silently fails, whereas 2 megabytes crashes just as 4 does.