3👍
I had a collision with the same problem on my Linux machine — Vue-CLI tool has been showing me that everything was OK, but has been ignoring a lot of folders at the same time. Then I have tried to clone my repository to the other folder, so it means that I reinstalled node_modules too. But it showed me error like:
Error: ENOSPC: System limit for number of file watchers reached, watch
‘/home/username/Desktop/folder/public’
So I have just run next line in terminal:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
And now I don’t have such problems anymore.
Source:stackexchange.com