To avoid this error, we need to _increase the inotify watcher limit_.

The way to do this is different on Arch based distributions than other Linux distributions.

# Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file
(recent versions of Manjaro include one)

```sh
ls /etc/sysctl.d/*-max_user_watches.conf
```

## a) If no output

```sh
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max_user_watches.conf && sudo sysctl --system
```

## b) If the command outputs a file

_(in the rare case where it outputs multiple files, continue using the **last** one in the list)_

```sh
# replace `/etc/sysctl.d/50-max_user_watches.conf` with the file returned from the previous `ls` command
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/50-max_user_watches.conf && sudo sysctl --system
```

# Check it's working

```sh
cat /proc/sys/fs/inotify/max_user_watches
```

Expected output: `524288`

# Credits

* [inotify og dev](http://johnmccutchan.com/)
* [explanation and **_troubleshooting_**](https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers)
* [manjaro fix original](https://github.com/guard/listen/issues/444)