react-share icon indicating copy to clipboard operation
react-share copied to clipboard

Unable to install react-share

Open vinaymcscet opened this issue 3 years ago • 7 comments

I have getting this error multiple times. image

vinaymcscet avatar May 04 '22 06:05 vinaymcscet

I have at the same error in expo react node :(

MarvynGarcia avatar May 06 '22 16:05 MarvynGarcia

have you tried giving your root folder a different name?

eduardlotz avatar Jul 12 '22 11:07 eduardlotz

yes I have created a one dummy project named - react-demo. And, inside there I have installing the react-share package.

vinaymcscet avatar Jul 12 '22 12:07 vinaymcscet

Try yarn add react-share

Abshank avatar Aug 13 '22 13:08 Abshank

I am getting (when I go npm install react-share, this:

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!   react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0 || ^17" from [email protected]
npm ERR! node_modules/react-share
npm ERR!   react-share@"*" from the root project```

Any thoughts or instructions on how to fix?

davidkartuzinski avatar Sep 04 '22 00:09 davidkartuzinski

I am getting (when I go npm install react-share, this:

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!   react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0 || ^17" from [email protected]
npm ERR! node_modules/react-share
npm ERR!   react-share@"*" from the root project```

Any thoughts or instructions on how to fix?

you can ty "--legacy-peer-deps" in the end of your commande

asmaerhiati avatar Oct 06 '22 22:10 asmaerhiati

I am getting (when I go npm install react-share, this:

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!   react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0 || ^17" from [email protected]
npm ERR! node_modules/react-share
npm ERR!   react-share@"*" from the root project```

Any thoughts or instructions on how to fix?

you can ty "--legacy-peer-deps" in the end of your commande

Thank you.

davidkartuzinski avatar Oct 07 '22 11:10 davidkartuzinski