Kamalesh kunwar
Kamalesh kunwar

Reputation: 272

How can I upgrade the react-native version?

I tried to update my react-native version to latest one. i.e react-native 0.60.3 I got the following error with these two methods.

C:\Users\Kamlesh\Desktop\Final Project>react-native upgrade

info No version passed. Fetching latest...
info Fetching diff between v0.59.9 and v0.60.4...
error Failed to fetch diff for [email protected]. Maybe it's not released yet?
info For available releases to diff see: https://github.com/react-native-community/rn-diff-purge#version-changes```


C:\Users\Kamlesh\Desktop\Final Project>react-native upgrade [email protected]

info Fetching diff between v0.59.9 and v0.60.3...
error Failed to fetch diff for [email protected]. Maybe it's not released yet?
info For available releases to diff see: https://github.com/react-native-community/rn-diff-purge#version-changes

Upvotes: 9

Views: 7728

Answers (2)

Kamalesh kunwar
Kamalesh kunwar

Reputation: 272

I got the solution: Simply list all the packages which needs to be updated and get all the packages with the latest version. Use the following using npm.

npm i -g npm-check-updates
ncu -u
npm install

Upvotes: 3

jaimeneto85
jaimeneto85

Reputation: 129

I had the same problem. How do I fixed?

  • change package.json setting react-native to 0.59.10
  • run npm install
  • now run react-native upgrade

Upvotes: 5

Related Questions