Garbanzo Note

jestでwatchが出来なくなった!?

August 29, 2021

目次


jest --watchを実行すると以下エラー発生

Error: EMFILE: too many open files, watch

    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

watchman がないのが問題らしい…

$ which watchman

watchman not found

watchman インストールする

brew install watchman

ちなみに watchman こちら Watchman A file watching service | Watchman


Garbanzo

Webエンジニアの備忘録です。 学んだことをアウトプットしています。

合計記事数
25