Watchman crawl failed. Retrying once with node crawler

后端 未结 5 2354
时光说笑
时光说笑 2021-02-14 23:06

Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn\'t running. Create an empty .watchmanconfig file i

5条回答
  •  盖世英雄少女心
    2021-02-14 23:43

    You're running watchman as root but the state dir, which may contain trigger definitions and thus allow spawning arbitrary commands, is not owned by root. This is a security issue and thus watchman is refusing to start.

    The safest way to resolve this is to remove the state dir by running:

    rm -rf /usr/local/var/run/watchman/root-state

    I'd recommend that you avoid running tools that wish to use watchman using sudo to avoid this happening again.

提交回复
热议问题