Skip to content

node-fetch@v2 dependency triggers "DeprecationWarning: The punycode module is deprecated" #491

@jsoref

Description

@jsoref

"node-fetch": "^2.6.7",

Running v5 shows deprecation DEP0040 for node:punycode which is runtime-deprecated since Node v21. This refers to the node built-in punycode module, not the npm module of the same name.

Run actions/setup-node@v5
Attempting to download 24...
(node:2116) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

actions/setup-node#1364 (comment)

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