yarn add -P package

Category: Node.js & npm/yarn

yarn add -P package

Add a package as a peer dependency

Adds a package to peerDependencies — declaring that the host app must also install this package.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.