question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EXPO SDK 45 BETA - error running upgrade - failed to install expo package expo@next

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

69reactions
sreutercommented, May 22, 2022

@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 before expo upgrade did the trick for us.

68reactions
sean-m-olearycommented, Apr 29, 2022

i was able to resolve by the following steps:

  1. delete yarn.lock
  2. delete node_modules
  3. run yarn install
  4. run expo upgrade
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to install expo package with error: yarnpkg exited with ...
I deleted the yarn.lock file & .expo folder and tried running expo upgrade and it worked. I was upgrading from SDK 44 to...
Read more >
failed to install expo package with error: yarnpkg ... - You.com
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...
Read more >
Expo upgrade error - Expo Development Tools - Forums
error Command failed with exit code 1. expo diagnostics. Expo CLI 3.21.13 environment info: System: OS: Windows 10 10.0.18362. Binaries:
Read more >
expo-modules-core - npm
Run npx pod-install after installing the npm package. Configure for Android. No additional set up necessary. Importing native dependencies - ...
Read more >
expo-cli | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found