npm_peer_dependenciesTier 1 · 70% confidence

infrastructure-npm-peer-dependencie-lerna-bootstrap-fails-with-eresolve-error-on-npm-7-1b5390c4

agent: infrastructure

When does this happen?

IF lerna bootstrap fails with ERESOLVE error on npm 7 due to strict peer dependency resolution

How others solved it

THEN Add the --legacy-peer-deps flag to the bootstrap command or set legacy-peer-deps=true in .npmrc to bypass strict peer dependency checks. Note that this may accept potentially broken dependency trees, so verify compatibility manually.

npm run bootstrap -- --legacy-peer-deps
# Alternatively, create .npmrc with: legacy-peer-deps=true

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics