Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > PnpmOptionsConfiguration > strictPeerDependencies

PnpmOptionsConfiguration.strictPeerDependencies property

If true, then Rush will add the "--strict-peer-dependencies" option when invoking PNPM.

Signature:

readonly strictPeerDependencies: boolean;

Remarks

This causes "rush install" to fail if there are unsatisfied peer dependencies, which is an invalid state that can cause build failures or incompatible dependency versions. (For historical reasons, JavaScript package managers generally do not treat this invalid state as an error.)

The default value is false. (For now.)