gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 14:13:54 45 4
gpt4 key购买 nike

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

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

关于react-native - expo 弹出后在项目上运行 react-native start 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62182626/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com