Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

broccoli·2021년 6월 28일
0

vscode

목록 보기
4/6
post-thumbnail

위와 같은 에러메세지가 터미널에 나타나면서 작업하는 프로젝트의 hot reload가 제대로 되지 않느다면 아래와 같이 해결해줄 수 있다.

1. 현재 watcher limit확인하기

cat /proc/sys/fs/inotify/max_user_watches

2. watcher limit변경하기

아래 옵션을 /etc/sysctl.conf 맨 아래줄에 추가한다.

fs.inotify.max_user_watches=524288

3. reboot하기

reboot를 하지 않고 로그아웃이나 그냥현재 세션 유지하면 변경사항이 적용되지 않는다. 반드시 reboot!

참고링크

profile
🌃브로콜리한 개발자🌟

0개의 댓글