1

我正在尝试从 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)
4

1 回答 1

0

Expo sdk 39 尚不可用。

目前您可以使用 sdk 38 或等待。

Expo团队表示sdk39将在本月发布,但iOS 14来晚了所以我们真的不知道。

请阅读这篇文章 https://blog.expo.io/the-expo-sdk-39-roadmap-36bf5137e8db

于 2020-09-21T13:24:40.420 回答