Cant install using npm - broken dependency tree (@nivo/pie v0.67.0)
See original GitHub issueGood 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
- Create a blank folder and cd into it
- Run
npm init
to quickly create a new package.json - 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:
- Created 2 years ago
- Reactions:2
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw, this appears to be fixed for me now with
0.71.1
- thanks!Okay, well looks like a change might be needed in the
react-zdog
package to upgrade itsreact-reconciler
version. In the meantime, you could use--legacy-peer-deps
flag when installing to bypass the warning/errors.