react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

Unable to install the module using NPM

Open akhilsanker opened this issue 3 years ago • 4 comments

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

akhilsanker avatar Aug 10 '22 05:08 akhilsanker

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: [email protected]
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 [email protected]
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.

idortulov avatar Aug 10 '22 07:08 idortulov

Hi @idortulov ,

Thanks for the response.

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

Thanks

akhilsanker avatar Aug 11 '22 05:08 akhilsanker

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.

idortulov avatar Aug 13 '22 12:08 idortulov

Same error @idortulov

Can only install with yarn

Dat-Mobile avatar Sep 19 '23 08:09 Dat-Mobile