I'm trying to upgrade from React 0.14.9 to React 15.6.2, but am running into a dependency issue.
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^15.6.2
I don't understand this error, because it seems to indicate that I need react 15.6.2 for react-dom 15.6.2, but react 15.6.2 is what is installed.
In my package.json, I've tried various combinations, with and without the ^, but the same error persists:
"react": "15.6.2",
"react-dom": "15.6.2",
To check which React version is your project using you need to open the package. json. Take a look under the dependencies section. It should list all of the dependencies of your project and one of those should be React.
This is an issue with npm v2. It will be resolved if you upgrade it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With