Bypass peer dependency auto-resolution conflicts.
Section: Lockfiles and reproducible installs
Install with legacy peer handling
bash
bash
npm install --legacy-peer-depsExplanation
Bypass peer dependency auto-resolution conflicts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Lockfiles and reproducible installs
CI install without lifecycle scripts
Perform a clean install while skipping lifecycle scripts.
Refresh lockfile only
Update package-lock.json without changing node_modules.
CI install production deps only
Use lockfile while skipping devDependencies.