【问题标题】:Error watching file for changes: EMFILE {"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename": null}?监视文件更改时出错:EMFILE {"code":"EMFILE","errno":"EMFILE","syscall":"监视文件更改时出错:","filename": null}?
【发布时间】:2017-08-05 08:14:57
【问题描述】:

错误监视文件以进行更改:

EMFILE {"code":"EMFILE","errno":"EMFILE","syscall":"错误观看 修改文件:","filename": null}?

  "dependencies": {
        "react": "16.0.0-alpha.12",
        "react-native": "0.47.1",
        "react-native-router-flux": "^4.0.0-beta.16",
        "react-redux": "^5.0.5",
        "redux": "^3.7.2",
        "redux-thunk": "^2.2.0"
      }

【问题讨论】:

  • 得到同样的错误:“错误监视文件的更改:EMFILE {"code":"EMFILE","errno":"EMFILE","syscall":"错误监视文件的更改:" "filename":null} 错误:查看文件以进行更改时出错:EMFILE at exports._errnoException (util.js:1050:11) at FSEvent.FSWatcher._handle.onchange (fs.js:1374:11)"

标签: ios facebook reactjs mobile react-native-ios


【解决方案1】:

需要通过brew安装watchman

brew install watchman

【讨论】:

    【解决方案2】:

    如果您收到错误为Error watching file for changes: EMFILE

    运行这些命令来解决这个问题:

    1. brew 卸载 --force watchman
    2. brew 链接自动制作
    3. brew install --HEAD watchman

    【讨论】:

      猜你喜欢
      • 2017-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      • 2014-06-26
      • 1970-01-01
      • 2021-05-13
      相关资源
      最近更新 更多