Skip to content

[BUG] npm install incorrect resolve peerDependencies with exact versioning #6476

@Naymi

Description

@Naymi

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

image

Expected Behavior

install all package version 1.0.6 completely)

Steps To Reproduce

  1. In this environment [email protected] [email protected]
  2. git clone https://github.com/Naymi/npm-install-incorrect-resolve-peer && cd npm-install-incorrect-resolve-peer
  3. Run 'npm install'
  4. See error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @rsdk/[email protected]
npm ERR! node_modules/@rsdk/common
npm ERR!   @rsdk/common@"1.0.6" from the root project
npm ERR!   peer @rsdk/common@"^1.0.6" from @rsdk/[email protected]
npm ERR!   node_modules/@rsdk/core
npm ERR!     @rsdk/core@"1.0.6" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @rsdk/common@"^1.0.8" from @rsdk/[email protected]
npm ERR! node_modules/@rsdk/decorators
npm ERR!   peer @rsdk/decorators@"^1.0.6" from @rsdk/[email protected]
npm ERR!   node_modules/@rsdk/core
npm ERR!     @rsdk/core@"1.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! 
npm ERR! For a full report see:
npm ERR! /home/gitpod/.npm/_logs/2023-05-19T12_27_37_807Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitpod/.npm/_logs/2023-05-19T12_27_37_807Z-debug-0.log

Environment

  • npm: 9.5.1
  • Node.js: 18.16.0
  • OS Name: Ubuntu 22.04.2 LTS x86_64
  • System Model Name: Google Compute Engine
  • npm config:
; node bin location = /home/gitpod/.nvm/versions/node/v18.16.0/bin/node
; node version = v18.16.0
; npm local prefix = /workspace/npm-install-incorrect-resolve-peer
; npm version = 9.5.1
; cwd = /workspace/npm-install-incorrect-resolve-peer
; HOME = /home/gitpod
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 9.xwork is associated with a specific npm 9 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions