简体   繁体   English

使用 RealmJS 在 React Native 中出错 - 命令 PhaseScriptExecution 失败,退出代码为非零

[英]Error in React Native with RealmJS- Command PhaseScriptExecution failed with a nonzero exit code

Using Node.js v12.13.0 internal/modules/cjs/loader.js:797 throw err;使用 Node.js v12.13.0 internal/modules/cjs/loader.js:797 throw err; ^ ^

Error: Cannot find module '/Users/ABC/Projects/ReactNative/Project ABCD' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) at Function.Module._load (internal/modules/cjs/loader.js:687:27) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) at internal/main/run_main_module.js:17:11 { code: 'MODULE_NOT_FOUND', requireStack: [] }错误:在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) 在 Function/Module. cjs/loader.js:687:27) 在 Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) 在 internal/main/run_main_module.js:17:11 { 代码:'MODULE_NOT_FOUND',要求堆栈:[] }

Command PhaseScriptExecution failed with a nonzero exit code命令 PhaseScriptExecution 失败,退出代码非零

It seems like you are trying to reference a module that lives somewhere else.似乎您正在尝试引用位于其他地方的模块。 Can we see project code and file structure?我们可以看到项目代码和文件结构吗?

I resolved this issue by just removing a space from project folder name.我通过从项目文件夹名称中删除一个空格来解决此问题。

'Project ABCD' -> 'Project_ABCD' '项目 ABCD' -> 'Project_ABCD'

暂无
暂无

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

相关问题 React-Native 错误:命令 PhaseScriptExecution 失败,退出代码非零 - React-Native error: Command PhaseScriptExecution failed with a nonzero exit code React Native - 命令 PhaseScriptExecution 失败,退出代码非零 - React Native - Command PhaseScriptExecution failed with a nonzero exit code 命令 PhaseScriptExecution 在本机反应 [XCODE 12.5] 中以非零退出代码失败 - Command PhaseScriptExecution failed with a nonzero exit code in react native [XCODE 12.5] 命令 PhaseScriptExecution 失败,退出代码非零:React Native - Command PhaseScriptExecution failed with a nonzero exit code : React Native React Native - FBReactNativeSpec 命令 PhaseScriptExecution 失败,退出代码非零 - React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code React Native - 命令 PhaseScriptExecution 因非零退出代码 xcode 设置错误而失败 - React Native - Command PhaseScriptExecution failed with a nonzero exit code xcode setup error Xcode 12.4 React 本机构建在 IOS 中失败显示所有消息命令 PhaseScriptExecution 因非零退出代码而失败 - Xcode 12.4 React native build failed in IOS Showing All Messages Command PhaseScriptExecution failed with a nonzero exit code Xcode 13 构建错误 - 命令 PhaseScriptExecution 失败,退出代码为非零 - Xcode 13 build error - Command PhaseScriptExecution failed with a nonzero exit code XCode 12 - 命令 PhaseScriptExecution 失败,退出代码为非零 - XCode 12 - Command PhaseScriptExecution failed with a nonzero exit code 归档时“命令 PhaseScriptExecution 失败,退出代码非零” - "Command PhaseScriptExecution failed with a nonzero exit code" when archiving
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM