JM Lontoc
JM Lontoc

Reputation: 373

Error: react-native version in "package.json" doesn't match the installed version in "node_modules"

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.

Upvotes: 1

Views: 1998

Answers (1)

Nazır Dogan
Nazır Dogan

Reputation: 1588

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.

Upvotes: 1

Related Questions