package.json
{
"dependencies": {
...
"@angular/material": "~20.0.5",
"@angular/material-moment-adapter": "^20.0.5",
ng add @angular-eslint/schematics -f
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular/material-moment-adapter@20.1.0
npm error Found: @angular/material@20.0.6
npm error node_modules/@angular/material
npm error @angular/material@"~20.0.5" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/material@"20.1.0" from @angular/material-moment-adapter@20.1.0
npm error node_modules/@angular/material-moment-adapter
npm error @angular/material-moment-adapter@"^20.0.5" from the root project
npm error
npm error Conflicting peer dependency: @angular/material@20.1.0
npm error node_modules/@angular/material
npm error peer @angular/material@"20.1.0" from @angular/material-moment-adapter@20.1.0
npm error node_modules/@angular/material-moment-adapter
npm error @angular/material-moment-adapter@"^20.0.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
- I put "-f", why does it refuse to install it?
- what is the relationship between eslint and material?
- can you help me understand what these errors mean? and how to resolve ?