Skip to content

Version Conflict: undici@7.1.1requires Node.js ≥20.18.1 while package claims support for Node.js ≥18.19.0 #587

Description

@leonluyong

The package.json specifies "undici": "^7.1.1" as a dependency, which according to undici's documentationrequires Node.js ≥20.18.1. However, this package's package.jsondeclares support for "node": ">= 18.19.0". This causes installation/runtime failures when using Node.js 18.

Reproduction Steps:
Use Node.js v18.19.0
Install urllibin a project
Run any function that triggers the undici dependency
Observe module compatibility errors

Expected behavior:
The package should either:

  • Maintain compatibility with Node.js ≥18.19.0 by using an undici version that supports Node 18, OR
  • Update the package's engines.nodefield to reflect the actual requirement (≥20.18.1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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