[英]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.