Unable to upgrade from 0.59.4 to 0.59.5 [error Failed to fetch diff for [email protected]. Maybe it's not released yet?]
PS > react-native upgrade
info No version passed. Fetching latest...
info Fetching diff between v0.59.4 and v0.59.5...
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
react-native upgrade
OR
react-native upgrade [email protected]
Upgrade to to 0.59.5 or latest
react-native upgrade
OR
react-native upgrade [email protected]
React Native Environment Info:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Memory: 6.27 GB / 15.93 GB
Binaries:
Yarn: 1.15.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.7.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.4.0.0 AI-183.5429.30.34.5452501
This issue is probably better raised in https://github.com/react-native-community/cli
Issues like https://github.com/react-native-community/cli/issues/189 may be relevant to what you're looking for
I have same problem too
While the command does fail, I just want to point out it is easy to upgrade this particular version manually.
@wbercx thanks for the workaround. Manually updating from package.json is not recommended, but the last resort.
I would like to close this ticket down but would like the maintainers to explain what's causing the error. The error itself explains nothing.
It should be ok by now, so closing this issue. Please comment if it's still not working.
@dulmandakh yes it works but only with the above workaround // changing the package.json file - the react-native upgrade command failed.
Tested a moment ago.
Running react-native upgrade command without any modifications does not work for me as of a couple seconds ago.
Indeed, does not work
react-native upgrade 0.59.5
info Fetching diff between v0.59.2 and v0.59.5...
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
@dulmandakh could this be the issue causing this unexpected behavior?

Hint: The release tag is 0.59.5 but the version in the commit message is 0.59.6.
Sound crazy that a commit message can trigger this but maybe the code also reflects this?
I had the same issue and solved it deleting node_modules path and package-lock.json file, than updating react-native in the package.json from "react-native": "0.59.4" to "react-native": "0.59.5", to apply changes npm install, I believe that isn't the bast way to go, but worked form me, remember to test if all dependencies stay working.
Please use 0.59.9. Thank you
Masoomeh.Daneshvar.
On Tue, 18 Jun 2019, 09:44 Dulmandakh, notifications@github.com wrote:
Closed #24534 https://github.com/facebook/react-native/issues/24534.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/24534?email_source=notifications&email_token=ALADRYG4ANXGURT34NA23A3P3BVJZA5CNFSM4HHHKXS2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSA364DA#event-2419584524,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALADRYEM7QZ2XFBA7NC3OSDP3BVJZANCNFSM4HHHKXSQ
.
I've encountered this issue now, it happens with 0.59.9 and 0.60.0-rc3. However it works if first upgrading to 0.59.8 and then to 0.59.9.
Most helpful comment
I had the same issue and solved it deleting
node_modulespath andpackage-lock.jsonfile, than updating react-native in thepackage.jsonfrom"react-native": "0.59.4"to"react-native": "0.59.5", to apply changesnpm install, I believe that isn't the bast way to go, but worked form me, remember to test if all dependencies stay working.