Skip to content

[BUG] Installing peer dependency pre-releases seem not possible #4077

@medikoo

Description

@medikoo

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

We have a pre-release of Serverless Framework, installable via serverless@pre-3.

We'd love the users to test it, but in many cases, plugins have serverless configured as peer dependency, and then users when installing the plugin see the error as:

Screenshot 2021-11-22 at 15 24 49

Expected Behavior

Best would be if npm ignores installed pre-preleases and in such cases does not attempt to install "correct" version of peer dependency (just listing warning would be ok)

Steps To Reproduce

In an empty folder run the following commands:

npm install serverless@pre-3
npm install serverless-offline

Environment

  • npm: 8.1.4
  • Node: v16.13.0
  • OS: macOs 11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions