1. 程式人生 > >解決 Error: ENOSPC: System limit for number of file watchers reached

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

number num etc 有一個 mit sudo reac file err

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

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