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.

ERESOLVE unable to resolve dependency tree

See original GitHub issue

I’m trying to install in a project that uses Vuejs and Webpack, so, I’ve tried this steps below recommend on README.md:

npm i plain-draggable
cd node_modules/plain-draggable
npm i

and in command:

npm i 

I’ve got this errors below:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: plain-draggable@2.5.14
npm ERR! Found: babel-core@7.0.0-bridge.0
npm ERR! node_modules/babel-core
npm ERR!   dev babel-core@"^7.0.0-bridge.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer babel-core@"6" from babel-loader@7.1.5
npm ERR! node_modules/babel-loader
npm ERR!   dev babel-loader@"^7.1.5" 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.
npm ERR!
npm ERR! See C:\Users\guima\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\guima\AppData\Local\npm-cache\_logs\2021-06-05T20_03_42_369Z-debug.log

I’m not an expert about the versions of Babel, could you help me please ? Thanks in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ansekicommented, Jun 6, 2021

Hi @lucaslgr, thank you for the comment. Try this:

npm i --legacy-peer-deps

instead of:

npm i
0reactions
ansekicommented, Jun 6, 2021

😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve dependency tree error when installing npm ...
You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with --force , or --legacy-peer ......
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.
Read more >
ERESOLVE unable to resolve dependency tree when npm ...
Sometimes, When you are running npm install, You will get a dependency error npm ERR! ERESOLVE is unable to resolve the dependency tree....
Read more >
ERESOLVE unable to resolve dependency tree error [Solved]
The error "npm ERR! ERESOLVE unable to resolve dependency tree" occurs because starting with NPM version 7, NPM tries to install peerDependencies by...
Read more >
How to Fix npm ERR ERESOLVE Unable to Resolve ...
Command:- npm config set legacy-peer-deps trueIn This Video We Will See How to Fix npm ERR ERESOLVE Unable to Resolve Dependency Tree ......
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