When trying to npm install
I get these errors.
Can't get why it's not running if I'm using the latest version of React.
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.5
npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.7 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@~15.2.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-rc.1
When trying to npm install
I get these errors.
Can't get why it's not running if I'm using the latest version of React.
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.5
npm ERR! peerinvalid Peer [email protected] wants react@^15.2.1
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.7 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@~15.2.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0-rc.1
2 Answers
Reset to default 7You could also update npm to version 3. The new version will ensure you don't have this issue.
That's because other packages in your project wants lower version of React, like 15.0, but not 15.2. You can read more about peerDependencies here https://nodejs/en/blog/npm/peer-dependencies/#the-solution-peer-dependencies and here https://docs.npmjs./files/package.json#peerdependencies
Solution for your problem, do not upgrade your React version till you update other libraries.