0

Previously, I tried installing the package react-bootstrap, but since it wasn't compatible with my version of react I gave up.

However, now I get the following error when running npm install for any package:

npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@>=0.14.0

This happens even though react-bootstrap is not actually installed. It is NOT listed in package.json. In this file I only specify the version of react:

react": "~0.13.3"

How can I get rid of this error?

3
  • You may want to include the package.json as well. Commented Oct 14, 2015 at 15:06
  • I updated my response. Commented Oct 14, 2015 at 15:09
  • Why don't you use react 0.14? Commented Oct 14, 2015 at 15:11

2 Answers 2

2

Uninstall react-bootstrap then install its latest version working with react v0.13.x

npm uninstall react-bootstrap
npm install [email protected] --save
Sign up to request clarification or add additional context in comments.

Comments

0

I just needed to delete the node_modules file containing all npm packages. Then, I had to run npm install

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.