Open neunenak opened 1 year ago
I'm trying to build buttercup-mobile locally as per the readme. When I run npm install, I get the error:
npm install
> 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!
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.
npm install --force
I'm trying to build buttercup-mobile locally as per the readme. When I run
npm install
, I get the error: