How to downgrade properly to a lower version of RN
See original GitHub issueRefer here on the issue.
I wanted to use enzyme for shallow rendering and testing RN components but enzyme happens to want React 15.1.0, while RN 0.26.0 (Which was what I was using) wants React 15.0.2.
And then I upgraded (ran react-native upgrade
) after npm installing RN 0.26.3 then realized I should be at 0.28 for newer React version. But after that react-native-router-flux broke and I got Failed to build DependencyGraph: @providesModule naming collision:
.
So I just reverted all my changes from git. And since then had been unable to do an npm install
.
I keep running into
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react@15.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.26.3 wants react@15.0.2
npm ERR! peerinvalid Peer react-redux@4.4.5 wants react@^0.14.0 || ^15.0.0-0
So whats RN recommended way to downgrade ? (Note that package.json has all the right versions I want RN 0.26.0 and React 15.0.2, but still the above error)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Proper mechanism to downgrade react-native - Stack Overflow
Set your current version as base and select the previous minor release of react-native (You should downgrade one version at a time, it's...
Read more >Downgrading / reverting to a lower version - How-To - Duplicati
Use the main menu “About” -> “System info” Button to confirm your currently running version. · Stop Duplicati tray-icon and service AS applicable ......
Read more >Cisco APIC Installation and ACI Upgrade and Downgrade Guide
Check the Release Notes of both the APIC and ACI switches for the target version to make sure your hardware is supported. Compatibility...
Read more >react-native-screens - npm
For earlier versions, you must manually link the native module. ... To configure react-navigation to use screens instead of plain RN Views ...
Read more >Upgrading to new versions - React Native
The upgrade command works on top of Git by using git apply with 3-way merge, therefore it's required to use Git in order...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would have been nice to include a link before closing the ticket. This is the first result coming up on Google.
I am going to close this issue since there’s already StackOverflow question (great!) and it has more details.
PS. I’ve already answered there, hope it helps.