Could not resolve dependency peer react@"^16.12.0" from pullstate@1.20.1
See original GitHub issueThis is the error I get after npm install pullstate
in a create-react-app project
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.12.0" from pullstate@1.20.1
npm ERR! node_modules/pullstate
npm ERR! pullstate@"1.20.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Link to a related Stackoverflow question
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Unable to resolve dependency tree Reactjs
Just run below code. Works fine for me every time. You should also see this solution with the error. npm install --legacy-peer-deps.
Read more >npm ERR! Could not resolve dependency peer react [Solved]
The error "npm ERR! Could not resolve dependency peer react" occurs because since NPM version 7, `npm` tries to automatically install peer dependencies....
Read more >enzyme-adapter-react-16
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output. You can also manipulate, traverse, ......
Read more >could not resolve dependency peer react@ ^16.0.0
Solution 1: Ignore the peerDependencies The easiest way to fix the issue is to pass an additional parameter –legacy-peer-deps to npm install. The...
Read more >How to solve peer dependencies error after updating all ...
Can anyone help me figure it out? Currently I get this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you guys tried the latest version? I did update the peer dependencies for React 18.
Hahah, no stress. You’re welcome!
You can check out version
1.21.0
now @pSnehanshu . I think it should fix this issue.