1.1.0 • Published 3 years ago

install-all-peer-dependencies v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

install-all-peer-dependencies

A command-line interface to install all peer dependencies automatically.

In NPM versions 3 to 6, peer dependencies are not automatically installed, this package can be used to automatically install peer dependencies.

How to use

Install the package as a development dependency:

npm install --save-dev install-all-peer-dependencies

Add a postinstall npm run-script to package.json which runs the package:

"scripts": {
  "postinstall": "install-all-peer-dependencies"
}

Now after every npm install, the install-all-peer-dependencies will run and install all the peer dependencies.

Disclaimer

Sorry, this does not work with npm ci, it only works with npm i. This also does not guarantee that there are no conflicts or that the correct/best version of each package has been installed.