博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[ractNative]watchman 起不来,page loading不出来
阅读量:4229 次
发布时间:2019-05-26

本文共 2340 字,大约阅读时间需要 7 分钟。

出处

表现

//启动后给的信息,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 
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/
-state

转载地址:http://sbcqi.baihongyu.com/

你可能感兴趣的文章
一种应用于GPS反欺骗的基于MLE的RAIM改进方法
查看>>
自动驾驶汽车GPS系统数字孪生建模(一)
查看>>
自动驾驶汽车GPS系统数字孪生建模(二)
查看>>
CUDA 学习(五)、线程块
查看>>
CUDA 学习(八)、线程块调度
查看>>
CUDA 学习(九)、CUDA 内存
查看>>
CUDA 学习(十一)、共享内存
查看>>
游戏感:虚拟感觉的游戏设计师指南——第十四章 生化尖兵
查看>>
游戏感:虚拟感觉的游戏设计师指南——第十五章 超级马里奥64
查看>>
游戏感:虚拟感觉的游戏设计师指南——第十七章 游戏感的原理
查看>>
游戏感:虚拟感觉的游戏设计师指南——第十八章 我想做的游戏
查看>>
游戏设计的艺术:一本透镜的书——第十章 某些元素是游戏机制
查看>>
游戏设计的艺术:一本透镜的书——第十一章 游戏机制必须平衡
查看>>
UVM:7.5.1 期望值与镜像值
查看>>
UVM:7.5.2 常用操作及其对期望值和镜像值的影响
查看>>
UVM:7.6.1 检查后门访问中hdl 路径的sequence
查看>>
UVM:7.6.2 检查默认值的sequence
查看>>
UVM:7.7.1 使用reg_predictor
查看>>
UVM:7.7.2 使用UVM_PREDICT_DIRECT功能与mirror 操作
查看>>
UVM:7.7.3 寄存器模型的随机化与update
查看>>