【问题标题】:React Native - Command PhaseScriptExecution failed with a nonzero exit codeReact Native - 命令 PhaseScriptExecution 失败,退出代码非零
【发布时间】:2022-05-19 09:40:10
【问题描述】:

我在尝试获取存档时遇到了这个问题。

我得到了 react-native 0.63, 我得到了 expo,expo-cli。

我尝试重新安装 pod,删除结节模块并重新安装等。

有什么解决办法?

info Writing bundle output to:, /Users/tufancagkansokmen/Library/Developer/Xcode/DerivedData/lastsisapp-gtlfysxutnqqnrbbwrcxtyldvttq/Build/Intermediates.noindex/ArchiveIntermediates/lastsisapp/BuildProductsPath/Release-iphoneos/lastsisapp.app/main.jsbundle
info Done writing bundle output
info Copying 76 asset files
info Done copying assets
+ [[ false != true ]]
+ [[ ! -f /Users/tufancagkansokmen/Library/Developer/Xcode/DerivedData/lastsisapp-gtlfysxutnqqnrbbwrcxtyldvttq/Build/Intermediates.noindex/ArchiveIntermediates/lastsisapp/BuildProductsPath/Release-iphoneos/lastsisapp.app/main.jsbundle ]]
                 Welcome to React Native!
                Learn once, write anywhere


node:events:306
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:178:28)
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.checkedEmitError (/Users/tufancagkansokmen/works/lastsis-app/node_modules/sane/src/node_watcher.js:143:12)
    at FSWatcher.emit (node:events:329:20)
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:184:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}
Command PhaseScriptExecution failed with a nonzero exit code

【问题讨论】:

标签: react-native expo


【解决方案1】:

尝试重新安装守望者。对我来说,这个很有效。

brew reinstall watchman

不过你也可以试试这些。

brew update

brew install watchman

【讨论】:

    【解决方案2】:

    我有类似的错误。删除 yarn.lock 文件并运行

    yarn install
    

    解决了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 2020-06-27
      • 2020-12-18
      • 2020-10-25
      • 2021-04-30
      • 2021-02-03
      • 2019-07-23
      相关资源
      最近更新 更多