With NPM 7, peer dependencies are now installed automatically. How can I disabled this behavior?
Context:
I have an Angular NX Monorepo and I want to install only one copy of Angular at the root, also I want to install library inside "my-app". That library has Angular as a peer dependency. With NPM 6 Angular was only installed at the root node_modules, because peer dependencies were not installed automatically. But with NPM 7, Angular is also installed inside "my-app"'s node_modules
Project structure:
apps:
my-app:
node_modules:
@angular
package.json
node_modules:
@angular
package.json
As you can see in the structure above, two copies of Angular are being installed. With NPM 6 I would have only one copy, at the root level.