From https://www.npmjs.com/package/check-peer-dependencies
Checks peer dependencies of the current NodeJS package. Offers solutions for any that are unmet.
This utility will recursively find all peerDependencies in your project's dependencies list. It checks if you have installed a package that meets the required peer dependency versions. If any peer dependencies are unmet, it will search for a compatible version to install.
Note: you must run npm install or yarn first in order to install all normal dependencies.
usage:
npx check-peer-dependencies [--yarn|--npm] [--install] [--help] Options:
--help, -h Print usage information [boolean] --version Show version number [boolean] --yarn Use yarn package manager [boolean] --npm Use npm package manager [boolean] --install Install missing or incorrect peerDependencies [boolean]
*This command worked:
npx check-peer-dependencies --yarn --install