7

I was getting the famous two versions loaded error. I ran the line npm ls | grep reactand got the following:

├─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
├── [email protected]
│ ├─┬ [email protected]
│ └── [email protected]

It seems that react-dom uses [email protected] while the rest of my project uses [email protected].

What do I do to make react-dom not load this older version of react? I thought that this was the most up-to-date version of react-dom.

Note: I am using npm version 2.15.1 and node version v4.4.4

1
  • 1
    When I run into such issues, I delete my node_modules folder and run npm install again. (I suspect that sometimes the transitive dependencies are not updated properly by npm.) Commented May 24, 2016 at 17:19

1 Answer 1

1

You can try https://docs.npmjs.com/cli/dedupe, if Nicole's comment, with clean reinstall, does not help.

Sign up to request clarification or add additional context in comments.

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.