Dependency Error on "npm i" on freshly cloned repository
be-ne-ef opened this issue · 1 comments
be-ne-ef commented
On freshly cloned repository, "npm i" will result in dependency error:
myuser@My-MacBook-Pro eleventy-webpack-orig % npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: eleventy-webpack@undefined
npm ERR! Found: markdown-it@12.0.4
npm ERR! node_modules/markdown-it
npm ERR! dev markdown-it@"^12.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer markdown-it@">= 9.0.0 < 12.0.0" from markdown-it-attrs@3.0.3
npm ERR! node_modules/markdown-it-attrs
npm ERR! dev markdown-it-attrs@"^3.0.3" 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/myuser/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/myuser/.npm/_logs/2021-02-22T10_55_22_280Z-debug.log
Steps to reproduce:
- git clone https://github.com/clenemt/eleventy-webpack.git eleventy-webpack
- cd eleventy-webpack
- npm i
szegheo commented
I've just got the same error.
In package.json
I changed markdown-it-attrs
to ^4.0.0
and now npm i
runs fine.