解决Mac OS X10.12下 Error watching file for changes: EMFILE及`brew link autoconf automake`错误
2016-11-15 11:35
507 查看
把Mac系统升级到10.12后发现跑React-navtive项目报错了,错误标题为:Error watching file for changes: EMFILE具体表现如下图
![](http://img.blog.csdn.net/20161115111302769?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
查找资料后发现原来是升级后watchman不可用了,需要重装watchman。
第一种解决方案是打开终端后依次键入以下命令:
1.卸载原来安装的watchman:
brew uninstall --force watchman
2.删除原来的安装文件: rm -rf /usr/local/var/run/watchman/
3.重新安装watchman:
brew install watchman
第二种解决方案来自watchman的官方说明文档:https://facebook.github.io/watchman/docs/install.html
官方文档介绍了一些安装使用方法以及错误解决方案,英文不错的同学可以去Lock一下。
在安装watchman的过程中可能会报错,如果遇到“Error: You must `brew link autoconf automake` before watchman can be installed”错误。请在安装的时候先在终端中依次键入以下命令:
1.链接到autoconf : brew link autoconf
2.链接到automake: brew link automake
3.重新安装watchman:brew install watchman
在安装的时候当你看到
==>
Downloading https://homebrew.bintray.com/bottles/watchman-4.7.0.sierra.bottl
######################################################################## 100.0
表示watchman安装成功!
查找资料后发现原来是升级后watchman不可用了,需要重装watchman。
第一种解决方案是打开终端后依次键入以下命令:
1.卸载原来安装的watchman:
brew uninstall --force watchman
2.删除原来的安装文件: rm -rf /usr/local/var/run/watchman/
3.重新安装watchman:
brew install watchman
第二种解决方案来自watchman的官方说明文档:https://facebook.github.io/watchman/docs/install.html
$ git clone https://github.com/facebook/watchman.git $ cd watchman $ git checkout v4.7.0 # the latest stable release $ ./autogen.sh $ ./configure $ make $ sudo make install
官方文档介绍了一些安装使用方法以及错误解决方案,英文不错的同学可以去Lock一下。
在安装watchman的过程中可能会报错,如果遇到“Error: You must `brew link autoconf automake` before watchman can be installed”错误。请在安装的时候先在终端中依次键入以下命令:
1.链接到autoconf : brew link autoconf
2.链接到automake: brew link automake
3.重新安装watchman:brew install watchman
在安装的时候当你看到
==>
Downloading https://homebrew.bintray.com/bottles/watchman-4.7.0.sierra.bottl
######################################################################## 100.0
表示watchman安装成功!
相关文章推荐
- [绍棠] 解决Mac OS X10.12下 Error watching file for changes: EMFILE及`brew link autoconf automake`错误
- Error watching file for changes: EMFILE {"code":"EMFILE","errno":错误解决办法【ReactNative】
- react native 运行Android Error watching file for changes: EMFILE问题解决( Mac os)
- 运行React Native项目时出现Error watching file for changes: EMFILE问题解决
- MacOS Sierra下运行react-native start出现Error watching file for changes: EMFILE问题解决
- React Native 报错误“Error watching file for changes: EMFILE”
- react-native运行样例报错:Error watching file for changes: EMFILE
- react-native运行样例报错:Error watching file for changes: EMFILE
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决,错误的原因就是drawable下的文件不合法
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- 【Link】Building for MacOSX, but linking against dylib built for iOS Simulator file
- Mac OS X 编译android内核 error: elf.h: No such file or directory 的解决方法
- MAC中使用svn时报证书验证错误Error validating server certificate for…的解决办法
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- 解决mysql的错误-access denied for user 'root'@'localhost'(using password:YES) for MACOS
- MAC中使用svn时报证书验证错误Error validating server certificate for…的解决办法
- #error This file requires compiler and library support for the ISO C++ 2011错误解决办法
- make otapackage错误:OSError [Error 2]No such file or directory