Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Last active June 6, 2020 20:42
Show Gist options
  • Select an option

  • Save jamiejohnsonkc/146de99d65c6e5bfb2cdcb54cf953eed to your computer and use it in GitHub Desktop.

Select an option

Save jamiejohnsonkc/146de99d65c6e5bfb2cdcb54cf953eed to your computer and use it in GitHub Desktop.
Check-peer-dependencies usage

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment