Could not resolve dependency:
npm ERR! peer @angular/common@"^9.0.4" from angular2-promise-buttons@5.0.2
npm ERR! node_modules/angular2-promise-buttons
npm ERR! angular2-promise-buttons@"^5.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
:pancakes: Action version
v5.0.2
:tophat: workflow configuration
Angular 11.2.14
Steps To Reproduce
Steps to reproduce the behavior:
create Angular 11 app
npm install angular2-promise-buttons --save
wait a bit
See error
:police_car: Expected behavior
Warning shold be avoided
:heavy_plus_sign: Additional context
The issue is caused by changed behavior of npm, now it installs peer dependencies. Please, change peerDependencies in package.json file as to this:
:ghost: Brief Description
Npm v7:
:pancakes: Action version
v5.0.2
:tophat: workflow configuration
Angular 11.2.14
Steps To Reproduce
Steps to reproduce the behavior:
npm install angular2-promise-buttons --save
:police_car: Expected behavior
Warning shold be avoided
:heavy_plus_sign: Additional context
The issue is caused by changed behavior of npm, now it installs peer dependencies. Please, change peerDependencies in package.json file as to this: