You installed a peer outside the supported range. Install a compatible version or upgrade the plugin to one that supports your version.
Peer 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.
npm ERR! code E401 npm ERR! 401 Unauthorized - Token has expired
Token has expired - npm authentication failure
npm ERR! code ENOAUDIT npm ERR! Audit endpoint not supported
How to fix "npm ERR! code ENOAUDIT - Audit endpoint not supported"
npm ERR! code EBADDEVENGINES npm ERR! devEngines.runtime incompatible with current node version
How to fix "npm ERR! code EBADDEVENGINES - devEngines.runtime incompatible with current node version"