NodeJS error “EMFILE, too many open files” on Mac OS

后端 未结 11 679
醉话见心
醉话见心 2020-12-22 16:53

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         


        
11条回答
  •  难免孤独
    2020-12-22 17:27

    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
    

提交回复
热议问题