Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Peer [email protected] wants react@^15.6.2

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",
like image 304
Remy Sanders Avatar asked Feb 22 '19 18:02

Remy Sanders


People also ask

How do I know what version of React I have?

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.


1 Answers

This is an issue with npm v2. It will be resolved if you upgrade it.

like image 180
Tholle Avatar answered Oct 18 '22 13:10

Tholle