24

I want to upgrade my expo sdk version step by step as recommended in the documentation. These are the instructions:

  1. Update to the latest version of Expo CLI: npm i -g expo-cli. expo-cli@4.12.8 or greater is required.
  2. Update to the latest version of EAS CLI if you use it: npm i -g eas-cli.
  3. Run expo upgrade in your project directory.

I want to go from version 42 to version 43 and not to the last version 44. Is this possible?

Thanks a lot in advance

Natalia
  • 353
  • 1
  • 3
  • 10
  • 2
    When you run expo upgrade on terminal, you will be prompted with "You are currently using SDK 42.0.0. Would you like to update to the latest version, 47.0.0?" If you select No, the various versions to select from are presented which you can then choose from your preferred version. – Mydhe Nov 30 '22 at 14:37

8 Answers8

21

Try this

expo upgrade 43

This should solve your problem!

Tomas Balaguer
  • 211
  • 1
  • 2
17

Try this command :

  npm install expo@48 -g

Or :

  expo update 48

NOTE: version 48 released March 2, 2023

Moein Moeinnia
  • 1,945
  • 3
  • 10
  • 26
  • Thanks a lot for your response. Didn't work for me but I have tried with yarn add expo@43. In package json expo version is now 43 but react-native is "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz". I suppose that I will have to continue working on that. Thanks anyway – Natalia Jun 15 '22 at 11:50
3

Just run

expo upgrade -h

You will see the options. You just have to specify the version, as other answers suggest:

expo upgrade 46
RdC1965
  • 412
  • 5
  • 8
1

Please upgrade the expo-cli version. I had the similar situation and the following command solved my problem.

expo-cli upgrade @43.0.0

Since in your scenario, you need to update to 43, the above command should work, else you can specify the version as you need.

Rabin Pantha
  • 941
  • 9
  • 19
0

Tested on 29th Sep, 2022

Use expo upgrade @43.0.0

Rahul Dasgupta
  • 463
  • 8
  • 14
0

upgrade package.json with all updated packages. Remove node_module folder run the cmd npm install or yarn install also install eas-build for create new build.

0

As everything seems not to work, please use this command expo-cli upgrade

SAGALA
  • 1
-1

Try this:

expo install expo-updates