[Error]System limit for number of file watchers reached

BenKim·2020년 7월 13일
1

리액트를 하다보면 가끔 서버가 켜지지 않으면서
Error: ENOSPC: System limit for number of file watchers reached
라는 에러가 나올때가 있다.
방금전까지만해도 잘되다가 에러가 나와서 이유를 알수가 없었는데
검색 결과 일을 너무 많이해서 시스템의 file watcher가 한계에 다달한거라고 한다.
이럴때 간단히 터미널에 한줄이 코드를 입력해주면 해결된다.

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

출처 : https://github.com/gatsbyjs/gatsby/issues/11406

profile
연습과 자신감

1개의 댓글

comment-user-thumbnail
2022년 1월 11일

감사합니다

답글 달기