Skip to content

Incompatible node-fetch version (peer dependency of addons-scanner-utils) #2576

@marekvospel

Description

@marekvospel

When installing web-ext with pnpm, I get the following warning

 WARN  Issues with peer dependencies found
.
└─┬ web-ext 7.4.0
  └─┬ addons-linter 5.23.0
    └─┬ addons-scanner-utils 8.1.0
      └── ✕ unmet peer node-fetch@2.6.7: found 3.3.0 in web-ext

after removing lockfile and installing again, this becomes an error

ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies

What is the point of making node-fetch a peer dependency if only one version is allowed?
https://github.com/mozilla/addons-scanner-utils/blob/d87cb1b2377d1b1711697c0cf1de4d028af400c6/package.json#L23

Version information (for bug reports)

  • Firefox version: unnecessary
  • Your OS and version: Arch linux 6.0.12-arch1-1
node --version && pnpm --version && web-ext --version
v18.6.0
7.9.0
7.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions