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.

Cant install using npm - broken dependency tree (@nivo/pie v0.67.0)

See original GitHub issue

Good evening,

When trying to install the nivo/pie package by running npm i @nivo/pie, npm fails with the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: react-dom@17.0.2
npm ERR! node_modules/react-spring/node_modules/react-dom
npm ERR!   peer react-dom@">=17.0" from react-three-fiber@5.3.22
npm ERR!   node_modules/react-spring/node_modules/react-three-fiber
npm ERR!     peer react-three-fiber@">=4.0" from @react-spring/three@9.0.0-rc.3
npm ERR!     node_modules/react-spring/node_modules/@react-spring/three
npm ERR!       @react-spring/three@"9.0.0-rc.3" from react-spring@9.0.0-rc.3
npm ERR!       node_modules/react-spring
npm ERR!         react-spring@"9.0.0-rc.3" from @nivo/core@0.67.0
npm ERR!         node_modules/@nivo/core
npm ERR!         1 more (@nivo/tooltip)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-dom@"16.8.x" from react-konva@16.8.6
npm ERR! node_modules/react-spring/node_modules/react-konva
npm ERR!   peer react-konva@">=16.8" from @react-spring/konva@9.0.0-rc.3
npm ERR!   node_modules/react-spring/node_modules/@react-spring/konva
npm ERR!     @react-spring/konva@"9.0.0-rc.3" from react-spring@9.0.0-rc.3
npm ERR!     node_modules/react-spring
npm ERR!       react-spring@"9.0.0-rc.3" from @nivo/core@0.67.0
npm ERR!       node_modules/@nivo/core
npm ERR!       1 more (@nivo/tooltip)
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.

To Reproduce

  1. Create a blank folder and cd into it
  2. Run npm init to quickly create a new package.json
  3. Run npm i @nivo/pie

Expected behavior Should install successfully

Additional context I am running on Linux (Ubuntu), using nodeJS v15.12.0 and npm v7.7.6. It seems your dependencies cannot agree on which version of react-dom to use.

Thank you, Alex

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
blimmercommented, May 27, 2021

Btw, this appears to be fixed for me now with 0.71.1 - thanks!

1reaction
wyzecommented, May 5, 2021

Okay, well looks like a change might be needed in the react-zdog package to upgrade its react-reconciler version. In the meantime, you could use --legacy-peer-deps flag when installing to bypass the warning/errors.

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 ...
Read more >
@nivo/pie - npm
Start using @nivo/pie in your project by running `npm i @nivo/pie`. There are 106 other projects in the npm registry using @nivo/pie.
Read more >
@nivo/pie - npm
Install · Repository · Homepage · Weekly Downloads · Version · License · Unpacked Size · Total Files.
Read more >
@nivo/core - npm
Start using @nivo/core in your project by running `npm i @nivo/core`. There are 177 other projects in the npm registry using @nivo/core.
Read more >
@nivo/pie - npm
@nivo/pie. version downloads. Pie. documentation · Pie. Keywords. nivo · dataviz · react · d3 · charts · pie-chart. Install.
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