• 出处
  • 表现
  • 解决方式
    • 删除 watchman 之前用 brew装的
    • Manually install Watchman v470 credits to David
    • Chmod your users watchman state directory

出处

https://stackoverflow.com/questions/40414166/react-native-npm-start-with-watchman-error/40441481#40441481

表现

//启动后给的信息,watchman 起不来Looking for JS files in/Users/tomlucky/otherCode/RN/AwesomeProject Metro Bundler ready.Loading dependency graph...BUNDLE  [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)2018-01-09T18:09:37,917: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)Watchman:  watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-01-09T18:09:37,917: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)jest-haste-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 --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-01-09T18:09:37,917: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)2018-01-09T18:12:02,864: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)Watchman:  watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-01-09T18:12:02,864: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)ERROR  watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-01-09T18:12:02,864: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/tomlucky-state/sock! (No such file or directory)Loading dependency graph...BUNDLE  [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)Process terminated. Press <enter> to close the window

解决方式

删除 watchman (之前用 brew装的):


$ brew install rmtree //我的这句报错,用的 //brew tap beeftornado/rmtree
$ brew rmtree watchman
$ sudo rm -rf /usr/local/var/run/watchman

Manually install Watchman v4.7.0 (credits to David):

$ git clone https://github.com/facebook/watchman.git
$ cd watchman
$ git checkout v4.7.0  //我用的时候,master就是4.7,所以没必要切branch
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

Chmod your user’s watchman state directory:

//我这个没用,直接就可以跑起来了。
$ chmod 0700 /usr/local/var/run/watchman/<user>-state

[ractNative]watchman 起不来,page loading不出来相关推荐

  1. Appointment detail page loading never ends in Zeiss

    要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  2. react如何控制全局loading_ReactJS实践(一)—— FrozenUI React化之Loading组件

    在前面我们通过四篇文章入门了React的大部分主要API,现在则开始进入实践环节. 实践系列的开篇打算拿我司的FrozenUI来试验,将其部分UI组件进行React化,作为第一篇实践文章,将以较简单的 ...

  3. HTML5+CSS3 最酷的 loading 效果汇总

    用 gif 图片来做 loading 的时代已经过去了,它显得太 low 了,而用 HTML5/CSS3 以及 SVG 和 canvas 来做加载动画显得既炫酷又逼格十足.这已经成为一种趋势. 这里收 ...

  4. framework7使用笔记

    2019独角兽企业重金招聘Python工程师标准>>> myApp.addView('.view-main', {}); 以上这句代码一定要添加 ,否则链接的页面不能正常加载 --- ...

  5. next.js_Next.js手册

    next.js I wrote this tutorial to help you quickly learn Next.js and get familiar with how it works. ...

  6. Hexo博客NexT主题美化之顶部加载进度条

    前言 更多效果展示,请访问我的 个人博客. 效果图: 教程 进入博客文件夹的/themes/next文件夹下 cd /themes/next 复制代码 下载安装Progress module,如下 g ...

  7. snort完整安装(snort-2.8.3.1)

    snort完整安装一(snort-2.8.3.1) 本来是打算做字符串匹配的,上网查了资料说是snort中有匹配算法,于是想自己装一个试试,真是没想到,一装就3个星期,还是好不容易才搞定的.闲话不说了 ...

  8. PhantomJS快速入门教程(转)

    转自: http://www.woiweb.net/phantomjs-quick-use-tutorials.html 一.安装 安装包下载地址:http://phantomjs.org/downl ...

  9. 如何制作快速加载的HTML页面

    以下技巧都是基于通用的知识和经验,如果你有可以帮助他人提高页面加载性能的其它方法,可以在本文讨论区提出. 一个好的页面不仅要给访客提供一个更有效的站点,同时也需要降低你的服务器压力和网络请求.后者对于 ...

最新文章

  1. 《动手学深度学习》PyTorch版GitHub资源
  2. Mschat控件示例升级错误处理方法
  3. 设计模式学习---策略模式
  4. gatekeeper学习概述
  5. 'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件
  6. 怎样理解Linux的文件系统
  7. 温习下C语言一些函数
  8. 随想录(字节序和位序)
  9. P1640 [SCOI2010]连续攻击游戏
  10. php网站友链直显代码,友情链接代码有哪些 怎么写
  11. 详解Flutter中各种Binding
  12. 无人机行业情况 - 亿航、大疆、极飞
  13. Mac 安装 IntelliJ IDEA 以及激活方法
  14. 如何去除Discuz标题栏中的Powered by Discuz!
  15. 使用BC进行数字信封操作
  16. swi prolog 和java_java-如何在Android中使用swi-prolog
  17. C4D透视图设置背景图,实景合成小技巧。
  18. GTD--时间管理机制
  19. 解决Git下载速度慢、需要授权等问题
  20. Win10/11上VB6安装不了?SP6的版本对了吗?快来看这里

热门文章

  1. 2015年蓝桥杯B组国赛题目---密文搜索
  2. 如何保护压缩包里的内容不被看到?
  3. Centos 7 内核升级
  4. 弘辽科技:微淘升级为订阅后,淘宝商家应如何抓住机遇?
  5. 一次故障分析:HikariPool-1 - Connection is not available
  6. [论文阅读]用卷积神经网络提取的特征作为SVM分类器的输入CNN Features off-the-shelf: an Astounding Baseline for Recognition
  7. Fragment 嵌套使用 Activity has been destoryed
  8. 基金定投模拟收益试算
  9. 华为手机麒麟9000是否鸿蒙系统,华为新机浮出水面,麒麟9000+鸿蒙系统,这才是真正的国产手机...
  10. 腾讯云TDSQL-MYSQL备份恢复实战详细截图