今天早上运行npm start
时,我得到错误:
System limit for number of file watchers reached
因为/proc/sys/fs/inotify/max_user_watches
已经返回到初始值(8192)(如何增加max_user_watches)
我在一个新的React@17项目与MaterialUI &formik。这篇文章展示了我运行的命令来开始。
通过修改max_user_watches
为81920,它的工作。然而,我想降低我的CPU/RAM的消耗
**如何告诉我的项目(react VSC)不那么贪婪**
我也面临同样的问题,并尝试了以下命令,
sudo sysctl fs.inotify.max_user_watches=524288