[ReactNative] Expo ์„œ๋ฒ„ ์‹คํ–‰์‹œ Error: EMFILE: too many open files, watch
728x90

์—๋Ÿฌ ๋ฐœ์ƒ

๋ฉ€์ฉกํžˆ ์ž˜ ๋˜๊ณ ์žˆ๋˜ expo ์„œ๋ฒ„๊ฐ€ ๊ฐ‘์ž๊ธฐ yarn start ํ•˜๋‹ˆ ์•„๋ž˜ ์˜ค๋ฅ˜๋ฅผ ๋‚ด๋ฉด์„œ ์ข…๋ฃŒ๋˜์—ˆ๋‹ค.

node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/Users/yjlee/project/intermission/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (node:events:527:28)
    at FSWatcher._handle.onchange (node:internal/fs/watchers:210:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}

Node.js v18.0.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

watch... ์™€ ๊ด€๋ จ๋œ ๋ญ”๊ฐ€์— ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š”..

 

์ฐพ์•„๋ณด๋‹ˆ ๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ ๋‚ด๋ถ€์—์„œ ํŒŒ์ผ๋“ค์˜ ๋ณ€๊ฒฝ์„ ๊ฐ์‹œํ•˜๊ธฐ ์œ„ํ•ด watchman์„ ์‚ฌ์šฉํ•˜๋Š” ๋ชจ์–‘์ด๋‹ค.
ํ„ฐ๋ฏธ๋„์„ ์—ด์–ด์„œ watchman์„ ์„ค์น˜ํ•ด์ฃผ๋ฉด ๋‹ค์‹œ ์‹คํ–‰๋œ๋‹ค.

 

 

brew install watchman

 

 

์ฐธ๊ณ ๊ธ€

https://jaddong.tistory.com/entry/react-native-%EC%97%90%EC%84%9C-expo-start-%ED%96%88%EC%9D%84-%EB%95%8C-EMFILE-too-many-open-files-watch-error-%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0

728x90