Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOSPC: System limit for number of file watchers reached ( ReactJS error ) #53

Open
kermit-klein opened this issue Apr 15, 2020 · 0 comments

Comments

@kermit-klein
Copy link

kermit-klein commented Apr 15, 2020

Problem

-React error-
ENOSPC: System limit for number of file watchers reached

Background

When trying to run " yarn start " to start React local server, Ubuntu Linux runs into problem
Server does not start

How did you try to solve the problem?

The meaning of this error is that the number of files monitored by the system has reached the limit

Solution:

Modify the number of system monitoring files

Ubuntu

sudo gedit /etc/sysctl.conf

Add a line at the bottom

fs.inotify.max_user_watches=524288

Then save and exit!

sudo sysctl -p

to check it

Then it is solved!

https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached
( this is a question about React Native, but worked for ReactJS local server problem )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant