I'm working with big data sets, and have to use --max-old-space-size=4096 quite often.It isn't ideal typing the whole thing every time, so I tried creating a node.bat file that I put into my System32 folder...node --max-old-space-size=4096 %1 but this was a poorly thought-out idea that plunged me into an infinite loop.So, I renamed it to nd.bat and it works fine. Mostly. Now I get a super annoying "Terminate batch job (Y/N)?" when I Ctrl+c a running script. I'm happy that it works, but it could be improved.I can't find a node.bat file on my system, so I'm curious what happens when I type node script.js into the command prompt, and if there is any file that I can modify to always include the --max-old-space-size=4096 bit? Or maybe to configure my command prompt to not ask if I want to terminate when I Ctrl+c a script?Thanks for all the wisdom!
Submitted January 11, 2019 at 09:23PM by rockitman12
No comments:
Post a Comment