Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

install-peerdeps

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-peerdeps

CLI to automatically install peerDeps

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27K
increased by3.38%
Maintainers
1
Weekly downloads
 
Created
Source

install-peerdeps npm version Dependency Status

CLI to install package + peerDeps automatically

Since NPM v3 doesn't install peerDeps automatically anymore, it can be a hassle to install them all.

While on Linux you can run something like:

(
  export PKG=eslint-config-airbnb;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

The above solution doesn't work on Windows, so you can use this tool instead.

Also works with Yarn.

Usage


### `eslint-config-airbnb`
Command: `install-peerdeps eslint-config-airbnb@latest`

It'll automatically detect whether you're using Yarn or NPM and run the appropriate command.

If you have NPM: `npm install eslint-config-airbnb eslint@^3.9.1 eslint-plugin-jsx-a11y@^2.2.3 eslint-plugin-import@^2.1.0 eslint-plugin
-react@^6.6.0 --save-dev`

If you have Yarn: `yarn add eslint-config-airbnb eslint@^3.9.1 eslint-plugin-jsx-a11y@^2.2.3 eslint-plugin-import@^2.1.0 eslint-plugin
-react@^6.6.0 --dev`

## Todo
* work on cli

## License
[MIT](https://github.com/nathanhleung/install-peerdeps/blob/master/LICENSE)

Keywords

FAQs

Package last updated on 26 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc