-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|