react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Demo fails npm install

Open ssk-mps opened this issue 2 years ago • 0 comments

Description

Following the steps from the demo app https://wix.github.io/react-native-ui-lib/docs/getting-started/setup#demo-app fails

Related to

  • [ ] Components
  • [x] Demo
  • [ ] Docs
  • [ ] Typings

Steps to reproduce

  • Install Node LTS (16.17.1) + Npm LTS (8.19.2)
  • Clone the project git clone [email protected]:wix/react-native-ui-lib.git
  • cd react-native-ui-lib
  • Install dependencies npm install

Expected behavior

Npm install should not fail.

Actual behavior

❯ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   dev react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8" from @react-native-community/[email protected]
npm ERR! node_modules/@react-native-community/async-storage
npm ERR!   dev @react-native-community/async-storage@"^1.12.1" 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.

More Info

Code snippet

Please see above

Screenshots/Video

Environment

  • React Native version: Same as [email protected]:wix/react-native-ui-lib.git
  • React Native UI Lib version: Same as [email protected]:wix/react-native-ui-lib.git
  • ❯ node --version v16.17.1
  • ❯ npm --version 8.19.2

Affected platforms

  • [ ] Android
  • [ ] iOS
  • [ ] Web

ssk-mps avatar Oct 02 '22 02:10 ssk-mps