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

npm install broken #328

Open
neunenak opened this issue Dec 2, 2022 · 1 comment
Open

npm install broken #328

neunenak opened this issue Dec 2, 2022 · 1 comment

Comments

@neunenak
Copy link

neunenak commented Dec 2, 2022

I'm trying to build buttercup-mobile locally as per the readme. When I run npm install, I get the error:

> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @hookstate/core@3.0.13
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"~18.0.0" from the root project
npm ERR!   peer react@"*" from @georstat/react-native-image-cache@1.3.0
npm ERR!   node_modules/@georstat/react-native-image-cache
npm ERR!     @georstat/react-native-image-cache@"^1.3.0" from the root project
npm ERR!   23 more (react-native-file-access, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.6 || ^17.0.0" from @hookstate/core@3.0.13
npm ERR! node_modules/@hookstate/core
npm ERR!   @hookstate/core@"^3.0.13" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^16.8.6 || ^17.0.0" from @hookstate/core@3.0.13
npm ERR!   node_modules/@hookstate/core
npm ERR!     @hookstate/core@"^3.0.13" 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.
npm ERR! 
@perry-mitchell
Copy link
Member

Currently using node 16 to build mobile, and that along with the earlier version of npm I used did not cause such errors. This simply needs to be updated. You can try npm install --force for now.

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

2 participants