Cannot install @anglar/material due to dependency confict with Electron

Viewed 11

I'm trying to install angular material to the prebuilt template https://github.com/maximegris/angular-electron.

this is the error I'm getting

Your global Angular CLI version (14.2.3) is greater than your local version (14.0.6). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
ℹ Using package manager: npm
✔ Package information loaded.

The package @angular/material@14.0.6 will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: angular-electron@11.1.0
npm ERR! Found: @angular/core@14.0.6
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"14.0.6" from the root project
npm ERR!   peer @angular/core@"^14.0.0 || ^15.0.0" from @angular/material@14.0.6
npm ERR!   node_modules/@angular/material
npm ERR!     @angular/material@"14.0.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"14.2.3" from @angular/animations@14.2.3
npm ERR! node_modules/@angular/animations
npm ERR!   peer @angular/animations@"^14.0.0 || ^15.0.0" from @angular/material@14.0.6
npm ERR!   node_modules/@angular/material
npm ERR!     @angular/material@"14.0.6" 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.
npm ERR!
npm ERR! See /Users/*/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/*/.npm/_logs/2022-09-24T10_27_47_873Z-debug-0.log
0 Answers
Related