nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 430 forks source link

Unable to install react-share #447

Open vinaymcscet opened 2 years ago

vinaymcscet commented 2 years ago

I have getting this error multiple times. image

MarvynGarcia commented 2 years ago

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

eduardlotz commented 1 year ago

have you tried giving your root folder a different name?

vinaymcscet commented 1 year ago

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

Abshank commented 1 year ago

Try yarn add react-share

davidkartuzinski commented 1 year ago

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: gatsby-theme-naked-core-2022@1.0.0
npm ERR! Found: react@18.2.0
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 react-share@4.4.0
npm ERR! node_modules/react-share
npm ERR!   react-share@"*" from the root project```

Any thoughts or instructions on how to fix?
asmaerhiati commented 1 year ago

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: gatsby-theme-naked-core-2022@1.0.0
npm ERR! Found: react@18.2.0
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 react-share@4.4.0
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

davidkartuzinski commented 1 year ago

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: gatsby-theme-naked-core-2022@1.0.0
npm ERR! Found: react@18.2.0
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 react-share@4.4.0
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.