Mahendra Pratap
Mahendra Pratap

Reputation: 3633

Metro Bundler ready. ERROR ENOSPC: System limit for number of file watchers reached, watch

Metro Bundler ready.

ERROR ENOSPC: System limit for number of file watchers reached, watch

Upvotes: 9

Views: 7572

Answers (2)

Bruno Nepomuceno
Bruno Nepomuceno

Reputation: 1

If you are not interested in the technical details and only want to get Listen to work:

If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

If you are running ArchLinux, run the following command instead (see here for why):

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system

Then paste it in your terminal and press on enter to run it.

More info: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

Upvotes: 0

Mahendra Pratap
Mahendra Pratap

Reputation: 3633

I have solved it by running following command.

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

then

sysctl --system

Upvotes: 17

Related Questions