expo: EXPO SDK 45 BETA - error running upgrade - failed to install expo package expo@next
Summary
I run “EXPO_BETA=1 expo upgrade” and get the following output: I’m on expo sdk 44 and trying to run the expo 45 beta upgrade and it starts to install the expo@next package then bombs with the following error:
✔️ Would you like to proceed? … yes
✔️ You are currently using SDK 44.0.0. Would you like to update to the latest version, 45.0.0? … yes
⠦ Installing the expo@next package…
✖️ Failed to install expo package with error: yarnpkg exited with signal: SIGABRT yarnpkg exited with signal: SIGABRT Error: yarnpkg exited with signal: SIGABRT at ChildProcess.completionListener (/Users/soleary/.config/yarn/global/node_modules/@expo/spawn-async/src/spawnAsync.ts:64:13) at Object.onceWrapper (events.js:520:26) at ChildProcess.emit (events.js:400:28) at maybeClose (internal/child_process.js:1055:16) at Socket. (internal/child_process.js:441:11) at Socket.emit (events.js:400:28) at Pipe. (net.js:675:12) … at spawnAsync (/Users/soleary/.config/yarn/global/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at YarnPackageManager._runAsync (/Users/soleary/.config/yarn/global/node_modules/expo-cli/node_modules/@expo/package-manager/src/NodePackageManagers.ts:327:31) at YarnPackageManager.addWithParametersAsync (/Users/soleary/.config/yarn/global/node_modules/expo-cli/node_modules/@expo/package-manager/src/NodePackageManagers.ts:272:16) at YarnPackageManager.addAsync (/Users/soleary/.config/yarn/global/node_modules/expo-cli/node_modules/@expo/package-manager/src/NodePackageManagers.ts:276:5) at upgradeAsync (/Users/soleary/.config/yarn/global/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:496:7) at actionAsync (/Users/soleary/.config/yarn/global/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:42:3)
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
45
Environment
expo-env-info 1.0.3 environment info: System: OS: macOS 11.6.5 Shell: 5.8 - /bin/zsh Binaries: Node: 14.17.6 - /usr/local/bin/node Yarn: 1.22.15 - ~/.yarn/bin/yarn npm: 6.14.15 - /usr/local/bin/npm Watchman: 2021.09.27.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 25, 26, 27, 28, 29, 30 Build Tools: 29.0.2, 29.0.3, 30.0.3, 31.0.0 System Images: android-28 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: @expo/webpack-config: ~0.16.2 => 0.16.18 babel-preset-expo: 9.0.2 => 9.0.2 expo: ^44.0.0 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: expo-cli: 5.4.3 Expo Workflow: managed
Reproducible demo
NA
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (5 by maintainers)
@todorone No worries, we luckily just figured this out thanks to https://github.com/facebook/react-native/issues/32027 …
tldr; Running
yarn upgrade @babel/core
beforeexpo upgrade
did the trick for us.i was able to resolve by the following steps:
@brentvatne This is is still relevant for non-beta SDK 45 release.
expo upgrade
throws an error and only workaround mentioned by @sean-m-oleary works. This will be suboptimal upgrade DX, which is i guess critical for Expo ideology.Hi, just ran into the same issue
I tried with
and still no luck ☹
I tried
yarn upgrade @babel/core
before doing it again, and it worked! 😃This did the trick! Thanks!
@brentvatne We’re running into the very same thing here. This is the first upgrade for us that doesn’t run seamless unfortunately.
This worked for me