question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Peer dependency error while installing

See original GitHub issue

Trying to test this, but getting the following error:

npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peerOptional react@"^16.8.0" from @formkit/auto-animate@1.0.0-beta.1
npm ERR!   node_modules/@formkit/auto-animate
npm ERR!     @formkit/auto-animate@"*" 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.

I’m running Node v18.2.0 and React v18.1.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
guillermo-avaloscommented, May 20, 2022

@nattwasm Awesome, that fixed it. This literally took 4 seconds: https://www.magnayachts.com/en/second-hands @justin-schroeder 👍🏻 good idea

2reactions
nattwasmcommented, May 20, 2022

Try npm install @formkit/auto-animate --legacy-peer-deps, that should fix it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Npm peer dependency error - node.js - Stack Overflow
I am getting the npm peer dependency error repeatedly with npm install command . This is my package.json on which i have unmet...
Read more >
[BUG] non-previosly seen peer-dependency errors popping ...
After upgrading from 8.5.5 to 8.6.0 I'm starting to get peer dependency issues that are not present when running under 8.5.5. I don't ......
Read more >
Unable to resolve dependency tree error when ... - ItsMyCode
Solution 1: Ignore the peerDependencies. The easiest way to fix the issue is to pass an additional parameter –legacy-peer-deps to npm install.
Read more >
[Fixed] NPM conflicting peer dependency error
[Fixed] NPM conflicting peer dependency error · 1. Check for incompatible versions and upgrade the versions with NPM · 2. Use npm install...
Read more >
Unable to resolve dependency tree error in Angular while ...
To fix Unable to resolve dependency tree error in Angular while installing `npm` packages follow the below steps. 1. Run `npm install --save ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found