Wookim

우분트와 리액트 그리고 vscode 본문

카테고리 없음

우분트와 리액트 그리고 vscode

개발자인 경우 2020. 11. 7. 15:41

윈도우에서 작업한 리액트 프로젝트를 github에 올리고

우분투인 노트북에서 clone 하여 실행했더니 실행되지 않았다.

 

node와 npm를 삭제하고 다시 깔아보기를 여러번...

 

에러내용은 조금씩 바뀌나 실행까지는 되지 않았다.

 

최종적인 에러 내용으로 검색하니 vscode의 문제로 보여진다고 하는 

github내용을 찾았다.

 

에러 내용은 다음과 같다.


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


 

만약 vscode 터미널에서 위와 같은 에러내용이 있다면 

 

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

vscode 터미널에서 한번 처보길

 

원문 출처 : github.com/gatsbyjs/gatsby/issues/11406 

 

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/foldername/abcrypto/static' · Issue #11406 · gat

Description The web app compiles but when I reload the website, the compilation end with an error. Steps to reproduce Just type gatsby develop and if you click an article for example or you reload ...

github.com

자세한 내용 : github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

 

guard/listen

The Listen gem listens to file modifications and notifies you about the changes. - guard/listen

github.com

 

Comments