{"id":13670995,"url":"https://github.com/spatie/npm-install-peers","last_synced_at":"2025-04-04T17:07:37.333Z","repository":{"id":54691280,"uuid":"45113638","full_name":"spatie/npm-install-peers","owner":"spatie","description":"CLI command to install npm peerDependencies","archived":false,"fork":false,"pushed_at":"2022-03-21T15:18:13.000Z","size":40,"stargazers_count":195,"open_issues_count":1,"forks_count":25,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T16:05:59.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://spatie.be/opensource","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-28T13:20:35.000Z","updated_at":"2024-12-18T03:11:47.000Z","dependencies_parsed_at":"2022-08-14T00:10:29.549Z","dependency_job_id":null,"html_url":"https://github.com/spatie/npm-install-peers","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fnpm-install-peers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fnpm-install-peers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fnpm-install-peers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Fnpm-install-peers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/npm-install-peers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217183,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:00:55.337Z","updated_at":"2025-04-04T17:07:37.315Z","avatar_url":"https://github.com/spatie.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1\" /\u003e](https://supportukrainenow.org)\n\n# NPM Install Peers\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![npm](https://img.shields.io/npm/dt/npm-install-peers.svg?style=flat-square)](https://www.npmjs.com/package/npm-install-peers)\n\nCLI command to install npm peerDependencies. This can be useful when developing modules.\n\nConsider the following dependencies:\n\n```json\n{\n    \"dependencies\": {\n        \"react-router\": \"4.2.0\"\n    },\n    \"devDependencies\": {},\n    \"peerDependencies\": {\n        \"moment\": \"2.21.0\"\n    },\n}\n```\n\nIf you run this `npm-install-peers` command, `moment` will be installed because it's a **direct** peer dependency of your project. You'll still get a warning that `react-router` is missing a `react` peer dependency. You'll still need to install `react` yourself, this command **only installs direct peer dependencies**.\n\nYou probably don't need this package! It's generally a better idea to have your `peerDependencies` contents as `devDependencies` too.\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/npm-install-peers.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/npm-install-peers)\n\nWe invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).\n\nWe highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).\n\n## Postcardware\n\nYou're free to use this package (it's [MIT-licensed](LICENSE.md)), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.\n\nOur address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.\n\nThe best postcards will get published on the open source page on our website.\n\n## Installation\n\n```bash\nnpm install -g npm-install-peers\n```\n\n## Usage\n\n```bash\nnpm-install-peers\n```\n\nThis will read out your `package.json` file and install all of its peerDependencies. There are no other options.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker.\n\n## Credits\n\n- [Sebastian De Deyne](https://github.com/sebastiandedeyne)\n- [All Contributors](../../contributors)\n\n## About Spatie\n\nSpatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Fnpm-install-peers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Fnpm-install-peers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Fnpm-install-peers/lists"}