0

When I tried to install react-html-table-to-excel I am getting this error.

npm ERR! code ERESOLVE
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@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.x.x" from [email protected]
npm ERR! node_modules/react-html-table-to-excel
npm ERR!   react-html-table-to-excel@"*" 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.```
2
  • 1
    try npm install react-html-table-to-excel --force Commented Jun 4, 2021 at 10:24
  • I will try, thanks Sir Commented Jun 4, 2021 at 10:28

1 Answer 1

3

Try this:

npm install --save react-html-table-to-excel --legacy-peer-deps

It worked for me!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.