at createFsWatchInstance (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleDir (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:407:19)
at FSWatcher.<anonymous> (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:455:19)
at FSWatcher.<anonymous> (/home/flow/angular-pro-template/node_modules/gulp-watch/node_modules/chokidar/lib/nodefs-handler.js:460:16)
the reason for the error is there is a limit in the system for how many files can be watched by a user, using the following command in a terminal window we can simply increase the limit ..
1
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p