Summary
pnpm supports auto-install-peers, which will make it much less painful when installing dependency when strictPeerDependencies is turned on.
pnpm/pnpm#3995 (reply in thread)
Repro steps
Currently adding dependencies with peerDependencies is a manual drill down process:
- install it, see the missing dependency errors
- install the missing dependency, rinse and repeat
Tried adding auto-install-peers=true to .npmrc doesn't turn that on when using rust.
Details
To fix this, either let pnpm reads .npmrc or add autoInstallPeers to pnpmOptions in rush.json:
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question |
Answer |
@microsoft/rush globally installed version? |
5.66.2 |
rushVersion from rush.json? |
5.66.2 |
useWorkspaces from rush.json? |
yes |
| Operating system? |
Windows |
| Would you consider contributing a PR? |
No |
Node.js version (node -v)? |
16.14.2 |
| pnpm version? |
6.32.8 |
Summary
pnpmsupportsauto-install-peers, which will make it much less painful when installing dependency whenstrictPeerDependenciesis turned on.pnpm/pnpm#3995 (reply in thread)
Repro steps
Currently adding dependencies with
peerDependenciesis a manual drill down process:Tried adding
auto-install-peers=trueto.npmrcdoesn't turn that on when usingrust.Details
To fix this, either let
pnpmreads.npmrcor addautoInstallPeerstopnpmOptionsinrush.json:{ "pnpmOptions": { "autoInstallPeers": true } }Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rushglobally installed version?rushVersionfrom rush.json?useWorkspacesfrom rush.json?node -v)?