Error watching file for changes when running react native project: emfile problem solving

What are the eight life cycle hook functions of Vue>>>

When I run react native project on MAC system, I have the following problems:

It’s a problem with watchman, a tool provided by Facebook to monitor file system changes. Installing this tool can improve the performance of development (the packer can quickly capture the changes of files to achieve real-time refresh), so I unloaded and reloaded to solve the problem. The solution is as follows:

1. Uninstall watchman: brew uninstall watchman

2. Remove the watchman related files: RM – RF/usr/local/var/run/watchman/

3. Install watchman: brew install watchman

For details, please refer to the official GitHub issues of react native:

Similar Posts: