Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

NPM ERR! ERESOLVE unable to resolve dependency tree #1005

Description

@syah284

Describe the bug 🐛

I encountered an npm error with the following message:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: rvi@0.0.0
npm ERR! Found: @angular/common@16.0.6
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~16.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=5.0.0 <16.0.0" from angular-instantsearch@4.4.1
npm ERR! node_modules/angular-instantsearch
npm ERR!   angular-instantsearch@"*" 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/syahiruddin/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/syahiruddin/.npm/_logs/2023-10-16T01_17_23_589Z-debug-0.log

To Reproduce 🔍

Steps to reproduce the behavior:

  1. Run npm install or a similar npm command in the project.
  2. Observe the npm error message.

Expected behavior 💭

I expect the npm dependencies to be resolved without any errors. Instead, I encountered an npm ERR! ERESOLVE error, which prevented successful dependency resolution.

Screenshots 🖥

image

Environment:

  • Node.js version: v16.14.0
  • NPM Version: 8.3.1

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions