πŸ“” Studying/🚧 Errors

[ReactNative] Expo μ„œλ²„ μ‹€ν–‰μ‹œ Error: EMFILE: too many open files, watch

sero. 2023. 1. 9. 10:07
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