Skip to content

Commit

Permalink
Clarify EMFILE error
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Oct 3, 2024
1 parent 8c730ac commit 710ee7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ execute a command on each change, or get a stdio stream of change events.

## Troubleshooting

* On Linux, sometimes there's `ENOSP` error:
* `bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell`
`Error: watch /home/ ENOSPC`
* This means Chokidar ran out of file handles and you'll need to increase their count by executing the following command in Terminal:
`echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`
* `EMFILE` and `ENOSP` errors mean that Chokidar ran out of file handles. To resolve the problem:
* Execute `echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`
* If executing the command isn't possible, use [graceful-fs](https://www.npmjs.com/package/graceful-fs)
* Examples of error: `bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell`
* Another example: `Error: watch /home/ ENOSPC`
* If using 3.x, upgrade to latest chokidar to prevent fsevents-related issues:
* `npm WARN optional dep failed, continuing [email protected]`
* `TypeError: fsevents is not a constructor`
Expand Down

0 comments on commit 710ee7c

Please sign in to comment.