An override you set conflicts with dependency resolution. Adjust or remove the override, or align versions so the override matches the graph.
Fixes npm ERR! code ERESOLVE npm ERR! ERESOLVE overriding peer dependency is not allowed
rm -rf node_modules package-lock.json
npm installrm -rf node_modules package-lock.jsonnpm installnpm ERR! code ERESOLVEnpm ERR! ERESOLVE overriding peer dependency is not allowed
On this page
npm overrides (package.json "overrides") force specific versions. If the forced version conflicts with peer/dep requirements, the resolver errors with ERESOLVE override conflict.
Read which package and version the override is forcing and what peer/dep range it violates.
Pick a version that satisfies peers, or delete the override entirely and let npm resolve naturally.
Upgrade/downgrade the dependent package so its peers match the override target.
Refresh resolution after changes:
rm -rf node_modules package-lock.json
npm installUse overrides sparingly—prefer upgrading the real dependency. Overrides that fight peers often cause runtime breakage.