The Linux system puts a limit on the number of inotify watches assigned to each user.

  1. To increase the limit, edit etc/systctl.conf by adding the following line.
    fs.inotify.max_user_watches = 524288
  2. Run the following command.
    $ sudo sysctl -w fs.inotify.max_user_watches=524288