简体   繁体   English

metro-file-map: Watchman 抓取失败

[英]metro-file-map: Watchman crawl failed

This is not a duplicate!这不是重复的!

I am new to react-native, and I started a new project yesterday using Expo, and it was running fine yesterday - I worked on the navigation and added darkmode - and everything was running perfectly both on web and mobile... until I woke up today to this.我是 react-native 的新手,昨天我使用 Expo 开始了一个新项目,昨天运行良好 - 我在导航上工作并添加了暗模式 - 一切都在 web 和移动设备上运行完美......直到我今天醒来对此。

metro-file-map: Watchman crawl failed. Retrying once with node crawler.
  Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
  Error: Watchman error: query failed: synchronization failed: Connection timed out. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.

I followed the steps that some of the SO answers for similar watchman questions:我按照一些 SO 回答类似守望者问题的步骤进行操作:

$ watchman watch-del-all
$ watchman shutdown-server

I also added watchman to dependencies, and a.watchmanconfig file.我还将 watchman 添加到依赖项和一个 .watchmanconfig 文件。

But no, nothing seems to work for me, and I can't resume my work.但是不,似乎没有什么对我有用,我无法恢复工作。 Please help.请帮忙。

Made it work by removing watchman.通过删除守望者使其工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM