Gulp Error: watch ENOSPC

Uncleared error messages can be really time consuming sometimes.

I was getting Gulp Error: watch ENOSPC, googled and tried different solutions with no success, then finally found a solution at following link:

Error case:
https://stackoverflow.com/questions/50151071/gulp-watch-throws-error-error-watch

Solution:
There is the limit in the number of files that can be watched in a system. We have to increase this number. The below command can be used to increase this number.

echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

https://stackoverflow.com/questions/38845101/gulp-error-watch-enospc

 

About the author

Danyal

I'm working as programmer since 2002. Born, grew up, studied and worked in Pakistan now Im located in Denmark since 2006.

View all posts