Skip to content

[BUG] Peer dependency warnings are never seen when using legacy-peer-deps  #6227

Open
@sscaff1

Description

@sscaff1

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

When using legacy peer deps, npm no longer throws a warning for uninstalled peer dependencies.

Screenshot 2023-03-07 at 2 38 52 PM

Notice no warning for eslint-config-airbnb's peers.

Expected Behavior

You should see a warning. Notice that yarn throws a warning:

Screenshot 2023-03-07 at 2 37 09 PM

Steps To Reproduce

  1. Go to codesandbox
  2. Create a new node project
  3. yarn add eslint-config-airbnb - note you get warnings
  4. rm -rf node_modules
  5. npm i eslint-config-airbnb --legacy-peer-deps=true - note you get no warnings
  6. Look in the package-lock.json and note that none of the peers have been installed

Environment

  • npm: latest
  • Node.js: LTS
  • OS Name: N/A
  • System Model Name: N/A
  • npm config: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Discussionis pending a discussionNeeds 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