Site icon May's Notes

Error: EMFILE: too many open files, watch 解決方法

expo logo

啟動expo 的時候出現錯誤 Error: EMFILE: too many open files, watch

代表系統「同時監看的檔案數量」超過上限了 expo 會 watch 很多檔案做 hot reload,但系統可被監看的檔案數是有限的,一旦超過就報這個error。

解決方法

安裝watchman

brew install watchman

安裝完重開 Expo 就好了

Exit mobile version