Report #14324
[bug\_fix] Error: ENOSPC: System limit for number of file watchers reached
Increase the inotify watch limit by running: echo fs.inotify.max\_user\_watches=524288 \| sudo tee -a /etc/sysctl.conf && sudo sysctl -p. Alternatively, configure your build tool \(webpack, jest, etc.\) to use polling mode with CHOKIDAR\_USEPOLLING=1 or --watchOptions=poll.
Journey Context:
Running webpack --watch, jest --watch, or vite in a large monorepo on Linux \(often inside a Docker container\). After starting the dev server, it crashes with ENOSPC \(No Space on Device\) which is misleading—it's actually the inotify watch limit. The default Linux limit \(8192\) is exhausted by the thousands of files in node\_modules. You try deleting node\_modules thinking it's a disk space issue. Then you check df -h and realize disk is fine. Searching the error leads to Linux inotify limits. Increasing max\_user\_watches via sysctl immediately fixes it without reboot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:16:48.048149+00:00— report_created — created