question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues upgrading react-native

See original GitHub issue

Description

Following the “Upgrading” documentation (https://facebook.github.io/react-native/docs/upgrading.html), I’m not able to upgrade react-native

Reproduction

Run npm install --save react-native@0.38.0 having installed version 0.37.0

You will see this log:

➜  xxx git:(master) ✗ npm install --save react-native@0.38.0
 npm WARN peerDependencies The peer dependency react@~15.4.0-rc.4 included from react-native will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
 
> spawn-sync@1.0.15 postinstall /Users/xxx/Personal/xxx/node_modules/react-native/node_modules/yeoman-generator/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

npm ERR! Darwin 16.1.0
npm ERR! argv "/Users/xxx/.nvm/versions/node/v4.4.5/bin/node" "/Users/xxx/.nvm/versions/node/v4.4.5/bin/npm" "install" "--save" "react-native@0.38.0"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@15.3.2 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.38.0 wants react@~15.4.0-rc.4
npm ERR! peerinvalid Peer react-test-renderer@15.3.2 wants react@^15.3.2

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xxx/Personal/xxx/npm-debug.log

Solution

Add information about how to upgrade properly react-native

Additional Information

  • React Native version: 0.37.0
  • Platform: N/A
  • Operating System: MacOS

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mkonicekcommented, Nov 27, 2016

If you want, you can give a clue about how/where to do it, and I can send a PR.

I’m not sure I understand, sorry. Send a PR for what exactly?

0reactions
hramoscommented, May 25, 2017

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · react-native-community/upgrade-support - GitHub
A central community-backed place to request and give help when upgrading your app. - Issues · react-native-community/upgrade-support.
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies. Upgrading requires a ......
Read more >
React Native: Upgrade Dos and Don'ts | Shockoe
There are two things that drive updating the React Native version in a project. The first is when you have to because of...
Read more >
Upgrading React Native: The Good, the Bad and the Ugly
Upgrading React Native is notoriously difficult and there are numerous data points online ... Stability and performance became major issues.
Read more >
Upgrading react native to latest version - Stack Overflow
My advice is to upgrade to the latest version. There will be enough dependency issues anyway so you're best dealing with them only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found