Too many open files - Failed to initialize inotify: the user limit on the total number of inotify instances has been reached

For Linux:

Check current value of max_user_instances:

$ cat /proc/sys/fs/inotify/max_user_instances

increase that value:

$ echo 256 > /proc/sys/fs/inotify/max_user_instances

In order to make that change permanent add a line to /etc/sysctl.conf:

fs.inotify.max_user_instances = 256

This is usually a linux config issue. Increase the number of files open in the /etc/security/limits.conf:

It looks like you're using Mac OS in which case you should use sysctl. Add the following to the /etc/sysctl.conf:

kern.maxfiles=your new value kern.maxfilesperproc=your new value