For sometime I am having the following error:
Error: EMFILE, too many open files \'/Users/blagus/Gallery/Websites/Nicsware/Pills/resources/core/auth.node.js
None of the other answers worked for me. This did the trick:
launchctl limit maxfiles 16384 16384
Also to note, this doesn't save across sessions so unless you want to run it for each bash terminal session I suggest putting the above line in your ~/.bashrc (or ~/.zshrc if you are using zsh) by doing this at the command line:
vi ~/.bashrc