I get this error when I try to start my application using “`npm run serve“` command inside a terminal to start Vuejs or Reactjs application. How can I solve this error?
Here is few detail about error msg..
10% building 2/2 modules 0 activeevents.js:292 throw er; // Unhandled 'error' event ^ Error: ENOSPC: System limit for number of file watchers reached,
This error means that the number of files monitored by the system has reached the limit.
resulting in failure of execution command or throw a warning in Vuejs or Reactjs.
To solve this problem, we have to modify the number of system monitoring files.
Here is 3 step way to solve this problem in ubuntu..
- run following command sudo gedit /etc/sysctl.conf
- Add a line at the bottom of file, fs.inotify.max_user_watches=524288
- then save and exit, and to verify changes run sudo sysctl -p
Now try running your app. Your App will run fine now…