Scroll to top
© 2020 OCTOCODE

System limit for number of file watchers reached


octocode - May 6, 2021 - 0 comments

Working as a frontend developer is not only about JavaScript anymore. If you are working with
tools like gulp, webpack and you are using so-called watch (observing changes in files), you may
encounter the following error

Error: ENOSPC: System limit for number of file watchers reached


This means that your system does not allow you to watch any more files. The solution to this
problem is to increase the limit.

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

Related posts

Post a Comment

Your email address will not be published. Required fields are marked *