npm install --legacy-peer-deps package

Category: Node.js & npm/yarn

npm install --legacy-peer-deps package

Install ignoring peer dependency conflicts — useful when older packages haven't updated their peer

Installs while ignoring peer dependency conflicts. Peer deps are 'you must also have X installed' requirements; --legacy-peer-deps skips enforcing them — helpful when upgrading React or other frameworks where the ecosystem is still catching up.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.