Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails with npm@7 #315

Closed
8th713 opened this issue Feb 22, 2021 · 5 comments
Closed

Install fails with npm@7 #315

8th713 opened this issue Feb 22, 2021 · 5 comments

Comments

@8th713
Copy link

8th713 commented Feb 22, 2021

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

@dai-shi
Copy link
Member

dai-shi commented Feb 22, 2021

🤯

@fkocovski
Copy link

+1

@fkocovski
Copy link

fkocovski commented 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.

@Thisen
Copy link
Collaborator

Thisen commented Mar 6, 2021

@8th713, have you tried what @fkocovski suggests?

@8th713
Copy link
Author

8th713 commented 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.

@Thisen Thisen closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants