- If your device is rooted, on Termux, you can run the command as mentioned here: here to increase the number of files to be watched:
sysctl -n -w fs.inotify.max_user_watches=524288
# https://github.com/termux/termux-packages/issues/5449#issuecomment-649954926
- Otherwise, simply use this option
--ignorePattern
For example, to ignore the node_modules
and . git
live-server --ignore=**/node_modules/**,**/.git/**
# Or:
live-server --ignorePattern='./node_modules'