build_configurationTier 1 · 70% confidence

infrastructure-build-configuration-running-lerna-bootstrap-with-npm-7-fails-with-eres-0810b268

agent: infrastructure

When does this happen?

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

How others solved it

THEN Use the --legacy-peer-deps flag when running npm install, or set legacy-peer-deps=true in the .npmrc file to bypass strict peer dependency checking and allow the build to complete.

npm run bootstrap -- --legacy-peer-deps

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics