繁体   English   中英

expo 弹出后在项目上运行 react-native 时出错

[英]Error running react-native start on project after expo eject

我刚刚使用 expo 弹出从 Expo 弹出我的项目,当我尝试使用 react-native 启动运行它时,我在终端中收到以下错误消息:

events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:127:28)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/usr/local/lib/node_modules/react-native/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (events.js:310:20)
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:133:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}

我无法弄清楚解决这个问题需要知道什么,所以有人可以指出我应该采取的正确步骤来让我的项目在 react-native 上运行吗? 谢谢!

在命令行中运行以下命令来安装 watchman:

brew update
brew install watchman

尝试安装 watchman - 这改进了 react native 打包服务器的文件监视功能。 见: https://facebook.github.io/watchman/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM