Error: ENFILE: file table overflow, scandir while run reaction on Mac Error: ENFILE: file table overflow, scandir while run reaction on Mac reactjs reactjs

Error: ENFILE: file table overflow, scandir while run reaction on Mac


This is might be due to the limit on file open files on mac. By default it is set to low. You will need to increase the default size.

$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf$ sudo sysctl -w kern.maxfiles=65536$ sudo sysctl -w kern.maxfilesperproc=65536$ ulimit -n 65536 

Refer this link for more details.


sudo launchctl limit maxfiles 16384 16384 && ulimit -n 16384