解决 Error: ENOSPC: System limit for number of file watchers reached

manjaro 18.0 kde版本 

运行 yarn test报错

Error: ENOSPC: System limit for number of file watchers reached

解决:

 cd etc/sysctl.d
然后 ls 看下里面 应该只有一个文件 我的叫50-max_user_watches.conf

fs.inotify.max_user_watches = 524288

 

sudo sysctl -p --system

posted on 2019-03-02 14:41  c3tc3tc3t  阅读(9787)  评论(0编辑  收藏  举报