1

I ran react-native-git-upgrade so I can run react-native run-android later on to build my app on my device but an error message appeared.

The error says:

Error: react-native version in "package.json" (https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz) doesn't match the installed version in "node_modules" (0.57.1).

I tried running 'npm install' again but the error still occurs.

1
  • installed version on your system does not match with the version specified in your package.json file Commented Dec 25, 2018 at 11:19

1 Answer 1

1

You are using Expo. You can't upgrade like this way. Expo using custom version of React Native.Check this. https://docs.expo.io/versions/latest/workflow/upgrading-expo-sdk-walkthrough

and you are already using latest version of Expo.

Sign up to request clarification or add additional context in comments.

4 Comments

Since I'm already using Expo, how do I build the app on my device if react-native run-android does not work?
you need to download Expo Client app. play.google.com/store/apps/details?id=host.exp.exponent and for runnig app server with npm start check this docs. docs.expo.io/versions/v31.0.0/workflow/up-and-running
how am i supposed to export the signed apk with expo? i am getting the same error and i cant create an android folder with react-native eject
you need to run expo eject

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.