我正在尝试从 expo 构建 sdk-39,但由于 expo-yarn-workspaces 并出现以下错误而失败。我正在使用 Windows 8.1。请问有什么建议可以解决这个错误吗?
Trace:
Error: E:\react\expo-sdk-39\node_modules\@expo\sandbox: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c expo-yarn-workspaces postinstall
Directory: E:\react\expo-sdk-39\node_modules\@expo\sandbox
Output:
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module 'E:\react\expo-sdk-39\node_modules\packages\expo-yarn-workspaces\bin\expo-yarn-workspaces.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
at ProcessTermError.MessageError (C:\Program Files (x86)\Yarn\lib\cli.js:186:110)
at new ProcessTermError (C:\Program Files (x86)\Yarn\lib\cli.js:226:113)
at ChildProcess.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:30281:17)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)