Error: ENOSPC: System limit for number of file watchers reached, watch ....
라는 에러가 떴을 때(아래 그림 참조)
내용에 대해 번역을 돌려보니 모니터링할 수 있는 파일 수에 대한 시스템 제한에 직면한 경우라고 나와있다. 결과적으로 제한을 풀면 해결할 수 있는 문제라는 것. 우분투 한계는 8192 이기 때문에 이것을 넓혀줘야한다.
아래 코드를 작성하면 문제가 해결된다.
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
참고사이트
리눅스 커널 inotify(7). inotify watch limit 늘리기.
The technical details
Failed to compile
src/page/Nav.js
Line 15:19: Expected an assignment or function call and instead saw an expression no-unused-expressions
Search for the keywords to learn more about each error.
Nav.js 코드 라인 15번째부터 구문 오류가 났다는 의미로 중괄호나 소괄호 오류인 경우이다.
코드라인을 찾아가서 괄호 오류를 정정해주면 해결된다.