Skip to content

NPM v7 Install Issue #40

@joncursi

Description

@joncursi

With npm v7, I am unable to install this library alongside immutable without using the --legacy-peer-deps flag:

Package JSON:

{
    ...
    "draftjs-utils": "0.10.2",
    "immutable": "4.0.0-rc.12",
    ...
}
➜  npm -v
7.0.8
➜  node -v
v15.1.0
➜  npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: xxx
npm ERR! Found: immutable@4.0.0-rc.12
npm ERR! node_modules/immutable
npm ERR!   immutable@"4.0.0-rc.12" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer immutable@"3.x.x || 4.x.x" from draftjs-utils@0.10.2
npm ERR! node_modules/draftjs-utils
npm ERR!   draftjs-utils@"0.10.2" 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 /Users/joncursi/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/joncursi/.npm/_logs/2020-11-10T11_15_54_545Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions