Skip to content

npm i fails on the master branch #3

@akaustav

Description

@akaustav

Hi @thisiszoaib,

I tried cloning this repository today. And ran npm i on the master branch (at commit ID 606b94c). It fails with the following error:

PS O:\repos\thisiszoaib\angular-dark-mode> npm i                                                                                             
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular/[email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/cdk
npm error   @angular/cdk@"^19.0.3" from the root project
npm error   peer @angular/cdk@"19.0.3" from @angular/[email protected]
npm error   node_modules/@angular/material
npm error     @angular/material@"^19.0.3" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/cdk@"^12.0.0" from @angular/[email protected]
npm error node_modules/@angular/flex-layout
npm error   @angular/flex-layout@"^12.0.0-beta.34" from the root project
npm error
npm error Conflicting peer dependency: @angular/[email protected]
npm error node_modules/@angular/cdk
npm error   peer @angular/cdk@"^12.0.0" from @angular/[email protected]
npm error   node_modules/@angular/flex-layout
npm error     @angular/flex-layout@"^12.0.0-beta.34" 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.
npm error
npm error
npm error For a full report see:
npm error C:\Users\Ameet\AppData\Local\npm-cache\_logs\2025-11-09T19_22_12_150Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\Ameet\AppData\Local\npm-cache\_logs\2025-11-09T19_22_12_150Z-debug-0.log 

Additional Information

For context, I am running the following:

  • Operating System = Microsoft Windows 11 Version 25H2
  • Terminal = PowerShell 7.5.4
  • Node.js version = v25.1.0
  • Node.js Package Manager (npm) version = 11.6.2

Please let me know if you require additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions