React Native 测试expo sdk 39,但在expo-yarn-workspace上失败

rryofs0p  于 2023-03-03  发布在  React
关注(0)|答案(1)|浏览(141)

我尝试从expo构建sdk-39,但是失败了,因为expo-yarn-workspace有以下错误。我使用的是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)
20jt8wwn

20jt8wwn1#

Expo sdk 39目前还不能使用。
目前您可以使用sdk 38或等待。
世博会团队表示,sdk39将于本月发布,但iOS14来得晚,所以我们真的不知道。
请阅读本文

相关问题