【发布时间】:2016-11-16 00:40:49
【问题描述】:
我从昨天开始就遇到了这个问题,无法解决。我已经浏览了所有为 react native 和 watchman 提交的 github 问题,没有一个有助于解决问题。
当我尝试使用命令在我的项目文件夹中启动 react-native 时:
react-native start
在终端中抛出以下日志:
[4:57:26 PM] 构建依赖关系图 [4:57:27 PM] 爬取文件系统 [Hot Module Replacement] 服务器监听 /hot
React 打包器准备就绪。
无法构建 DependencyGraph:Watchman 错误:无法读取属性 null 的“根”。确保 watchman 正在为此项目运行。看 https://facebook.github.io/watchman/docs/troubleshooting.html。错误: 守望者错误:无法读取 null 的属性“根”。确保 watchman 正在为这个项目运行。看 https://facebook.github.io/watchman/docs/troubleshooting.html。 在 /Users/anum/Desktop/Practice/QuizReact/node_modules/node-haste/lib/crawlers/watchman.js:63:11 在 process._tickCallback (internal/process/next_tick.js:103:7)
我已将 watchman 和 brew 更新到最新版本。请有人能指出我解决这个问题的正确方法吗?谢谢。
【问题讨论】:
标签: ios react-native watchman