Env: Ubuntu 16

Could refer to https://webpack.js.org/configuration/watch/#not-enough-watchers

The main root cause is fs.inotify.max_user_watches too low, higher the value resolved my issue.

1
2
3
echo 1048576 > /proc/sys/fs/inotify/max_user_watches // resovle the issue for one time

## persist the changes

Add below conf to /etc/sysctl.conf

1
fs.inotify.max_user_watches=1048576

And then sysctl -p /etc/sysctl.conf