Skip to content

Dependency ngx-long-press2 breaks installation #1863

@bafu

Description

@bafu

Description

Related upstream issue: AnthonyNahas/ngx-long-press2#2

npm i

Error log

bafu@MacBook-Air-2:~/codes/capture-lite$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: ngx-long-press2@2.0.0
npm ERR! Found: @angular/common@12.2.4
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"^12.2.4" from the root project
npm ERR!   peer @angular/common@"^12.0.0 || ^13.0.0-0" from @angular/cdk@12.2.4
npm ERR!   node_modules/@angular/cdk
npm ERR!     @angular/cdk@"^12.2.4" from the root project
npm ERR!     peer @angular/cdk@"12.2.4" from @angular/material@12.2.4
npm ERR!     node_modules/@angular/material
npm ERR!       @angular/material@"^12.2.4" from the root project
npm ERR!       1 more (@ngx-formly/material)
npm ERR!   9 more (@angular/forms, @angular/material, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^10.0.14" from ngx-long-press2@2.0.0
npm ERR! node_modules/ngx-long-press2
npm ERR!   ngx-long-press2@"^2.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @angular/common@10.2.5
npm ERR! node_modules/@angular/common
npm ERR!   peer @angular/common@"^10.0.14" from ngx-long-press2@2.0.0
npm ERR!   node_modules/ngx-long-press2
npm ERR!     ngx-long-press2@"^2.0.0" 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/bafu/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/bafu/.npm/_logs/2022-07-31T15_57_01_701Z-debug-0.log

Steps to Reproduce

  1. Run npm installation

Logs

2022-07-31T15_57_01_701Z-debug-0.log

Environment

  1. capture-lite: commit b7cb9b1

┆Issue is synchronized with this Asana task by Unito

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions