ENOSPC: System limit for number of file watchers reached ( ReactJS error )
Opened this issue · 0 comments
kermit-klein commented
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 )