运行 watchman 时出错 [英] Error when running watchman

查看:104
本文介绍了运行 watchman 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 react-native start 时,我收到以下消息

错误:已触发不可恢复的条件.守望者需要你的帮助!触发条件为timestamp=1489123194:inotify-add-watch(/var/www/html/eventManager/android/app/src/main/res/mipmap-mdpi) -> 用户对inotify手表总数的限制已达到;增加 fs.inotify.max_user_watches sysctl所有请求将继续失败并显示此消息,直到您解决根本问题.您将在以下位置找到有关解决此问题的更多信息https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch

在 ChildProcess.(/var/www/html/bookLister/node_modules/fb-watchman/index.js:207:21)在emitTwo (events.js:106:13)在 ChildProcess.emit (events.js:191:7)在maybeClose (internal/child_process.js:852:16)在 Socket.<匿名>(内部/child_process.js:323:11)在emitOne (events.js:96:13)在 Socket.emit (events.js:188:7)在 Pipe._handle.close [as _onclose] (net.js:492:12)

解决方案

echo 256 |须藤三通 -a/proc/sys/fs/inotify/max_user_instances回声 32768 |须藤三通 -a/proc/sys/fs/inotify/max_queued_events回声65536 |须藤三通 -a/proc/sys/fs/inotify/max_user_watches

<块引用>

watchman shutdown-server

这个有帮助

When I run react-native start, I am getting the following message

Error: A non-recoverable condition has triggered. Watchman needs your help! The triggering condition was at timestamp=1489123194: inotify-add-watch(/var/www/html/eventManager/android/app/src/main/res/mipmap-mdpi) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl All requests will continue to fail with this message until you resolve the underlying problem. You will find more information on fixing this at https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch

at ChildProcess.<anonymous> (/var/www/html/bookLister/node_modules/fb-watchman/index.js:207:21)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)

解决方案

echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

watchman shutdown-server

This one helped

这篇关于运行 watchman 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆