How To Fix “ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login”?

[ad_1]

Are you having problems with the issue “ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login“? How to fix it? In today’s article, I will provide solutions for you to solve the issues. Please follow the below steps to get the problem resolved now

How did “ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login” occur?

ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login

When you work with ReactJS, you may get the issue ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login. Don’t worry, we are here to provide you solutions in order to resolve your problem.

How to fix “ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login”?

To Solve ERESOLVE Unable to Resolve Dependency Tree when Installing NPM React-Facebook-Login Error. This appears to be an issue with npm version 7.x. You should add the --legacy-peer-deps option again. Here is the command pne you should use.

Solution 1: Add legacy peer-deps option to commandline

This appears to be an issue in npm version 7.x. You can try adding --legacy-peer-deps again. Here’s the command line you should use.

Use this command

npm install react-facebook-login --legacy-peer-deps

Instead of this command

npm install react-facebook-login

Solution 2: Remove the node_modules and package-lock.json. Then bundle with yarn install

I just deleted node_modules, package-lock.json,, and then I was able to bundle yarn install. This command is possible.

rm -rf node_modules
rm package-lock.json 
yarn install 
# It will generates a yarn.lock file and a new package-lock.json

npm start

Final words

The above are useful solutions that can help you fix “ERESOLVE unable to resolve dependency tree when installing npm react-facebook-login” problem, if you can’t solve it well. Please leave a message.

[ad_2]

Source link