You installed a peer outside the supported range. Install a compatible version or upgrade the plugin to one that supports your version.
Fixes npm ERR! invalid: [email protected], required peer react@^16.0.0 || ^17.0.0
npm install react@"^16.0.0 || ^17.0.0" # example rangenpm install react@"^16.0.0 || ^17.0.0" # example rangenpm ERR! invalid: [email protected], required peer react@^16.0.0 || ^17.0.0
npm install react@"^16.0.0 || ^17.0.0" # example rangePeer dep invalid means the installed version does not satisfy the peer range declared by the dependent package, risking runtime incompatibility.
Align the peer to the required range:
npm install react@"^16.0.0 || ^17.0.0" # example rangeUse a version of the plugin that supports your current peer:
npm install package-name@latestAfter adjusting versions:
rm -rf node_modules package-lock.json
npm installKeeping core libs and their plugins on the same major reduces peer-invalid churn. Overrides/--legacy-peer-deps can mask the warning but risk breakage.