Reputation: 272
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
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
Reputation: 129
I had the same problem. How do I fixed?
npm install
react-native upgrade
Upvotes: 5