The ENOSPC error occurs when the system reaches its limit for file watchers, which is common in Expo and React Native projects that monitor many files.
cat /proc/sys/user/max_inotify_watchesCurrent Limit: 65,536 watchers
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.confsudo sysctl -pcat /proc/sys/fs/notify/max_user_watchesNew Limit: 524,288 watchers ✅
Successfully increased the file watcher limit from 65,536 to 524,288, which should resolve the ENOSPC error.
- Modified system configuration in
/etc/sysctl.conf - Applied changes without requiring reboot
- Increased capacity for file monitoring by 8x