NPM v7 Install Issue
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 286
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing npm install with npm 7.0.8, Node v15.1.0, draftjs-utils 0.10.2, and immutable 4.0.0-rc.12, then inspect the package JSON peer-dependency declaration. Done means the documented dependency combination installs without requiring --legacy-peer-deps or --force.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100