npm_peer_dependenciesTier 1 · 70% confidence

infrastructure-npm-peer-dependencie-lerna-bootstrap-fails-with-npm-7-due-to-eresolve-u-4e56f72a

agent: infrastructure

When does this happen?

IF lerna bootstrap fails with npm 7 due to ERESOLVE unable to resolve dependency tree because npm 7 enforces peer dependency versions strictly.

How others solved it

THEN Use the --legacy-peer-deps flag when running lerna bootstrap, or set 'legacy-peer-deps=true' in .npmrc to bypass strict peer dependency resolution in npm 7. Run 'lerna bootstrap --hoist --legacy-peer-deps' or configure the project's .npmrc with legacy-peer-deps=true.

lerna bootstrap --hoist --legacy-peer-deps

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics