Skip to content

npm install fails for node version 16.15.1 and later #3479

Closed
@guy-har

Description

@guy-har

Currently, npm install version 16.15.1 and later fails due to the version of react-diff-viewer
This resolves by:

  • Developers can't run npm install with newer npm versions
  • All our workflows are currently fixed on version 16.15.0
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.0" from the root project
npm ERR!   peer react@">=16.8.0" from @emotion/[email protected]
npm ERR!   node_modules/@emotion/react
npm ERR!     peer @emotion/react@"^11.0.0-rc.0" from @emotion/[email protected]
npm ERR!     node_modules/@emotion/styled
npm ERR!       peerOptional @emotion/styled@"^11.3.0" from @mui/[email protected]
npm ERR!       node_modules/@mui/material
npm ERR!         @mui/material@"^5.6.4" from the root project
npm ERR!       2 more (@mui/styled-engine, @mui/system)
npm ERR!     peerOptional @emotion/react@"^11.5.0" from @mui/[email protected]
npm ERR!     node_modules/@mui/material
npm ERR!       @mui/material@"^5.6.4" from the root project
npm ERR!     2 more (@mui/styled-engine, @mui/system)
npm ERR!   23 more (@emotion/styled, @mui/base, @mui/material, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.3.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-diff-viewer
npm ERR!   react-diff-viewer@"^3.1.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^15.3.0 || ^16.0.0" from [email protected]
npm ERR!   node_modules/react-diff-viewer
npm ERR!     react-diff-viewer@"^3.1.1" 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.

Unfortunately, there is no newer version of react-diff-viewer. there is a PR suggesting a fix from Jun 9, 2021, that wasn't merged yet (praneshr/react-diff-viewer#125).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/UIImprovements or additions to UIinfrastructurebuild, deploy and release processesteam/ecosystemTeam Ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions