Skip to content

Issues upgrading react-native #11104

Closed
Closed
@NoelBroda

Description

@NoelBroda

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 [email protected] having installed version 0.37.0

You will see this log:

➜  xxx git:(master) ✗ npm install --save [email protected]
 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 [email protected]: use uuid module instead
 
> [email protected] 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" "[email protected]"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@~15.4.0-rc.4
npm ERR! peerinvalid Peer [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions