1

I am new to react native. I have setup project properly and able to run it in emulator. Now I want to use react-redux for my project. When I am running npm install --save react-redux I am getting following error.

+-- [email protected]
`-- UNMET PEER DEPENDENCY redux@^2.0.0 || ^3.0.0

npm WARN [email protected] requires a peer of redux@^2.0.0 || ^3.0.0 but none was installed.

enter image description here

I am using Windows + Android Emulator, got so many solution but all IOS based. I have also tried to put manually.

My package.json file:

"dependencies": {
    "react": "15.4.1",
    "react-native": "0.40.0",
    "react-redux": "^5.0.1",
    "redux": "^3.5.2"
  },

1 Answer 1

1

Realized it's not error, it is just missing dependent module.
Working fine after running npm install --save redux

It is also required two more dependency modules:

npm install --save redux-logger
npm install --save redux-thunk
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.