Hi,
Dependency version details.
node: v15.8.0
nvm: 0.33.2
nodejs: v4.2.6
When I run an "npm start" command I'm getting this error.
Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/html/project/simple-mern-project/frontend/public'
Error message:
I found the solution from this StackOverflow URL: https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached
This is the command, I run to solve the issue:
# insert the new value into the system config
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# check that the new value was applied
cat /proc/sys/fs/inotify/max_user_watches
# config variable name (not runnable)
fs.inotify.max_user_watches=524288
Comments
Post a Comment