install-peerdeps

(β˜… 301)

πŸ’» Quickly install an npm package and its peer dependencies automatically, using npm, Yarn, or pnpm.

  • .babelrc
  • .eslintrc.json
  • .gitignore
  • .npmignore
  • .npmrc
  • .prettierrc
  • CHANGELOG.md
  • CONTRIBUTING.md
  • LICENSE
  • package.json
  • README.md
  • ROADMAP.md

# Installation Guide

1. Get the code
git clone https://github.com/nathanhleung/install-peerdeps

Downloads the entire project code from GitHub to your computer.

cd install-peerdeps

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
yarn dlx install-peerdeps --yarn <package>[@<version>]

Type this command into your terminal and run it.

pnpm dlx install-peerdeps --pnpm <package>[@<version>]

Type this command into your terminal and run it.

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

Downloads and installs the libraries listed in package.json.

Usage: <npx|yarn dlx|pnpm dlx> install-peerdeps <package>[@<version>], default version is 'latest'

Type this command into your terminal and run it.

-S, --silent If using npm, don't save in package.json

Type this command into your terminal and run it.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation