最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - "Error watching file for changes: EMFILE" when run the examples from facebookreact-nativeExamples

programmeradmin0浏览0评论

I want to run the Examples from facebook/react-native/Examples in OS X 10.12.

First I use npm install and then use npm start:

There is an error:

Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1008:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)

Then I use Xcode run the code but there is the same error.

I need help or advice. Thanks very much.

I want to run the Examples from facebook/react-native/Examples in OS X 10.12.

First I use npm install and then use npm start:

There is an error:

Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1008:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)

Then I use Xcode run the code but there is the same error.

I need help or advice. Thanks very much.

Share Improve this question edited Sep 24, 2016 at 13:03 robertklep 204k37 gold badges415 silver badges406 bronze badges asked Sep 24, 2016 at 11:32 聂小涛聂小涛 5731 gold badge4 silver badges21 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

The react-native-cli depends on watchman, you can try to install watchman with brew install watchman,then have another try.

This solved the issue for me: brew install watchman

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论