react native : React packager 就绪。错误 Watcher 加载时间过长
react native : React packager ready. ERROR Watcher took too long to load
我正在尝试 运行 一个 android 项目 on react native 但是当我尝试 运行 它使用这个命令时:react-native start
然后它会给我留下这个错误:
Looking for JS files in
C:\Users\mohammad\Desktop\AwsoneProject
[2:55:39 AM] <START> Building Dependency Graph
[2:55:40 AM] <START> Crawling File System
[2:55:40 AM] <START> Loading bundles layout
[2:55:40 AM] <END> Loading bundles layout (1ms)
React packager ready.
ERROR Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
Error: Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
at [object Object]._onTimeout (index.js:103:16)
at Timer.listOnTimeout (timers.js:92:15)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
我已经在网上搜索过了,但几个小时后我仍然无法修复它。
我不得不提到我在这种情况下使用 windows。
我会很感激任何帮助。
您需要增加 FileWatcher 中的超时时间 - https://facebook.github.io/react-native/docs/linux-windows-support.html#content
这实际上是一个 Windows 特定问题。它对我来说在 Linux 上运行良好。增加FileWatcher中的MAX_WAIT_TIME。居然超时了。
在this
检查一下
你必须增加这个:
const MAX_WAIT_TIME = 120000;
我正在尝试 运行 一个 android 项目 on react native 但是当我尝试 运行 它使用这个命令时:react-native start
然后它会给我留下这个错误:
Looking for JS files in
C:\Users\mohammad\Desktop\AwsoneProject
[2:55:39 AM] <START> Building Dependency Graph
[2:55:40 AM] <START> Crawling File System
[2:55:40 AM] <START> Loading bundles layout
[2:55:40 AM] <END> Loading bundles layout (1ms)
React packager ready.
ERROR Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
Error: Watcher took too long to load
Try running `watchman version` from your terminal
https://facebook.github.io/watchman/docs/troubleshooting.html
at [object Object]._onTimeout (index.js:103:16)
at Timer.listOnTimeout (timers.js:92:15)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
我已经在网上搜索过了,但几个小时后我仍然无法修复它。 我不得不提到我在这种情况下使用 windows。 我会很感激任何帮助。
您需要增加 FileWatcher 中的超时时间 - https://facebook.github.io/react-native/docs/linux-windows-support.html#content
这实际上是一个 Windows 特定问题。它对我来说在 Linux 上运行良好。增加FileWatcher中的MAX_WAIT_TIME。居然超时了。
在this
检查一下你必须增加这个:
const MAX_WAIT_TIME = 120000;