question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install fails with npm@7

See original GitHub issue

Steps 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fkocovskicommented, Feb 24, 2021

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.

0reactions
8th713commented, Mar 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found