taskrabbit / react-native-zendesk-chat

React Native Wrapper around Zendesk Chat v2
MIT License
130 stars 126 forks source link

Unable to install the module using NPM #141

Open akhilsanker opened 1 year ago

akhilsanker commented 1 year ago

Hi,

Not able to install the node module using NPM.

"react": "17.0.2", "react-native": "0.66.2", node: v18.3.0 npm: v8.11.0

Thanks

idortulov commented 1 year ago

I can confirm that the library fails to install.

This is the error I am receiving:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ******@0.0.1
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.11.0" from react-native-zendesk-chat@0.4.1
npm ERR! node_modules/react-native-zendesk-chat
npm ERR!   react-native-zendesk-chat@"^0.4.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.

@akhilsanker You can fix it by running npm install --force.

akhilsanker commented 1 year ago

Hi @idortulov ,

Thanks for the response.

I have tried with --force, but no change, unable to install.

Thanks

idortulov commented 1 year ago

Hi @idortulov ,

Thanks for the response.

I have tried with --force, but no change, unable to install.

Thanks

@akhilsanker Try deleting the ode_modules directory and package-lock.json file first and try with --force then. Hope it helps.

Dat-Mobile commented 9 months ago

Same error @idortulov

Can only install with yarn