Skip to content

Instantly share code, notes, and snippets.

@samonzeweb
Last active January 1, 2020 11:07
Show Gist options
  • Save samonzeweb/ce6d67790df5dd35b8dbb491d8209aeb to your computer and use it in GitHub Desktop.
Save samonzeweb/ce6d67790df5dd35b8dbb491d8209aeb to your computer and use it in GitHub Desktop.
Node does not detect file changes (dev server)

Modification temporaire

sudo -s

cat /proc/sys/fs/inotify/max_user_watches
8192

echo 524288 > /proc/sys/fs/inotify/max_user_watches

cat /proc/sys/fs/inotify/max_user_watches
524288

Modification permanente

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment