Install fails with npm@7
See original GitHub issueSteps To Reproduce
run npm install jotai react scheduler react-dom
Result
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: jotai-npm7-bug@1.0.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"*" from the root project
npm ERR! peer react@">=16.8" from jotai@0.14.5
npm ERR! node_modules/jotai
npm ERR! jotai@"*" from the root project
npm ERR! 1 more (react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.13.1" from react-native@0.63.4
npm ERR! node_modules/react-native
npm ERR! peerOptional react-native@"*" from jotai@0.14.5
npm ERR! node_modules/jotai
npm ERR! jotai@"*" 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.
Related issue
npm/cli#2553
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
npm install fails with NPM 7 #19957 - angular/angular-cli
Creating a new Angular project with the Angular CLI ( ng new ) fails when using the latest version of npm (7.5.x). Error...
Read more >Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >npm errors Angular 9.0.7 Installation Issues - Stack Overflow
I try by installing angular 9.0.7 globally and locally and then run npm install. it gives me following error I try with node...
Read more >NPM install error - Material Design for Bootstrap
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >npm 7 is now generally available! - The GitHub Blog
Automatically installing peer dependencies is an exciting new feature introduced in npm 7. In previous versions of npm (4-6), peer dependencies ...
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 Free
Top 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
It might help others, I was using node v15.9.0 and npm v7.5.3. I upgraded node to v15.10.0 and npm to v7.5.6 and it now works.
Yeah, it now works with npm v7.5.6 and v.7.6.1. The related issue has reopened, but it doesn’t seem to affect jotai. This issue can be closed.