install-peerdeps
π» Quickly install an npm package and its peer dependencies automatically, using npm, Yarn, or pnpm.
File Explorer
Download Latest Version (.zip)- node-pretest.yml
- node.yml
- dependabot.yml
- .gitkeep
- yarn.lock
- package.json
- package.json
- .gitignore
- package.json
- .gitignore
- package.json
- .gitignore
- .gitkeep
- package-clean.json
- cli.js
- cli.test.js
- constants.js
- has-yarn.js
- has-yarn.test.js
- helpers.js
- helpers.test.js
- install-peerdeps.js
- install-peerdeps.test.js
- .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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
