cometchat-sample-app-react-native icon indicating copy to clipboard operation
cometchat-sample-app-react-native copied to clipboard

npm install failure

Open alemar11 opened this issue 11 months ago • 3 comments

Describe the problem

When I run npm install, the command fails because the package async-storage 1.17.10 doesn't support rn 0.72.4

Reproduction

Clone the project and run npm install; using async-storage 1.22.3 seems to fix the problem

alemar11 avatar Mar 12 '24 16:03 alemar11

Keagan (CometChat Team) replied:

Hello,

Thank you for reaching out and sharing your concern with us.

Could you please provide us with the full error message you encounter when executing npm install, while using React Native version 0.72.4 along with the async-storage 1.17.10 package?

Regards

Keagan Ellis CometChat

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-native
npm ERR!   react-native@"0.72.4" from the root project
npm ERR!   peer react-native@"*" from @cometchat/[email protected]
npm ERR!   node_modules/@cometchat/calls-sdk-react-native
npm ERR!     @cometchat/calls-sdk-react-native@"^4.0.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.0.0-0 || 0.60 - 0.70 || 1000.0.0" from @react-native-async-storage/[email protected]
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   @react-native-async-storage/async-storage@"1.17.10" from the root project
npm ERR!   peer @react-native-async-storage/async-storage@"*" from @cometchat/[email protected]
npm ERR!   node_modules/@cometchat/calls-sdk-react-native
npm ERR!     @cometchat/calls-sdk-react-native@"^4.0.4" 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.

alemar11 avatar Mar 12 '24 16:03 alemar11

Keagan (CometChat Team) replied:

Hi,

Thank you for sharing the Information with us.

Please allow me some time to Investigate this Issue further and circle back with more Information at the earliest.

Regards

Keagan Ellis CometChat

Afroz Khan (CometChat Team) replied:

Hi there,

Can you please try by running npm install --legacy-peer-deps or npm install --force

Please let us know if this resolves the issue.

Regards,

Afroz Khan CometChat

tried npm install --legacy-peer-deps and it worked

alemar11 avatar Mar 18 '24 08:03 alemar11

Gaurav Yadav (CometChat Team) replied:

Hi,

Thank you for the confirmation, we will close this ticket for now, please reach out to us in case you have other queries.

Best Regards, Gaurav Yadav

CometChat