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

后端 未结 11 667
醉话见心
醉话见心 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:18

    awongh's answer worked for me

    ulimit -n 10480
    

    But only after starting an interactive shell

    sudo -i
    

    Outside of the shell I kept getting a permission error on OSX Yosemite

提交回复
热议问题