GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v5+: DeprecationWarning: The `punycode` module is deprecated · Issue #1364 · actions/setup-node

v5+: DeprecationWarning: The punycode module is deprecated #1364

New issue
Copy link
New issue
Copy link
Closed
#1449
Closed
v5+: DeprecationWarning: The punycode module is deprecated#1364
#1449
Copy link
Assignees
v-aparnajyothi-y
Labels
bugSomething isn't working

Description

@silverwind
silverwind
opened on Sep 10, 2025
Issue body actions

Description:

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)

This issue was introduced by #1325.

Action version:
v5

Platform:
all

Runner type:
all

Tools version:
any

Repro steps:
Run the action

Expected behavior:
No deprecation warning

Actual behavior:
Deprecation warning

Reacted by Christian Clauss, Roman Podlinov, liweijie0812, Edward Ogden, Milda, dgw, Michael Sverdlov, Trivikram Kamat, FunctionDJ, Joe Lencioni and 5 more

Activity

  1. silverwind
    added
    bugSomething isn't working
    needs triage
    on Sep 10, 2025
  2. silverwind
    changed the title [-]v5: `DeprecationWarning: The `punycode` module is deprecated`[/-] [+]v5: DeprecationWarning: The `punycode` module is deprecated[/+] on Sep 10, 2025
  3. v-priyagupta108 commented on Sep 11, 2025

    @v-priyagupta108
    v-priyagupta108
    on Sep 11, 2025
    Contributor
    More actions

    Hello @silverwind 👋,
    Thank you for your report. We'll investigate the issue and get back to you with the details!

  4. v-priyagupta108
    removed
    needs triage
    on Sep 11, 2025
  5. cclauss commented on Sep 12, 2025

    @cclauss
    cclauss
    on Sep 12, 2025
    Contributor
    More actions

    The same message also appears in

    • Post actions/setup-python@v6
    • Post actions/setup-node@v5
    Reacted by silverwind
  6. v-aparnajyothi-y
    self-assigned this
    on Sep 16, 2025
  7. trivikr commented on Sep 24, 2025

    @trivikr
    trivikr
    on Sep 24, 2025
    Contributor
    More actions

    Likely comes from @actions/cache dependency.

    $ grep -rnI 'require("punycode")' node_modules
    node_modules/whatwg-url/lib/url-state-machine.js:2:const punycode = require("punycode");
    node_modules/tr46/index.js:3:var punycode = require("punycode");
    
    $ npm list whatwg-url
    [email protected] /Users/trivikram/workspace/setup-node
    └─┬ @actions/[email protected]
      └─┬ @azure/[email protected]
        └─┬ [email protected]
          └── [email protected]
    
    $ npm list tr46
    [email protected] /Users/trivikram/workspace/setup-node
    └─┬ @actions/[email protected]
      └─┬ @azure/[email protected]
        └─┬ [email protected]
          └─┬ [email protected]
            └── [email protected]

    Looks like https://github.com/Azure/ms-rest-js will need to bump node-fetch dependency to 3.x
    Details node-fetch/node-fetch#1826 (comment)

    Reacted by Mike McCready
  8. v-aparnajyothi-y commented on Oct 16, 2025

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Oct 16, 2025
    Contributor
    More actions

    Hello Everyone Thanks everyone for the detailed investigation and inputs!

    We’ve identified that the deprecation warning originates from the transitive dependency chain within @azure/ms-rest-js, specifically through its usage of [email protected]
    → [email protected] → punycode.

    We’re currently working internally to fix the issue to remove the deprecated punycode reference. The fix is in progress, and we’ll update this issue once the change is integrated and released in a future version of setup-node.

    Thank you for your patience and for bringing this up!

    Reacted by Mike McCready
    Reacted by FunctionDJ, Christian Clauss, Marco 'Lubber' Wienkoop, Mike McCready and Lachlan Kidson
  9. MikeMcC399 commented on Oct 17, 2025

    @MikeMcC399
    MikeMcC399
    on Oct 17, 2025
    Contributor
    More actions

    This also affects actions/[email protected].

  10. jsoref commented on Oct 29, 2025

    @jsoref
    jsoref
    on Oct 29, 2025
    More actions
    • Fwiw, [email protected] will not fix this Faulty NPM upload 2.7.0 node-fetch/node-fetch#1797 -> chore: avoid deprecation warning node-fetch/node-fetch#1793 (comment)
    • Afaict, [email protected] does not have this dependency.
  11. jsoref commented on Oct 29, 2025

    @jsoref
    jsoref
    on Oct 29, 2025
    More actions
    • A quick review of https://github.com/Azure/ms-rest-js/issues indicates that Azure/ms-rest-js has been abandoned...
    • Meat should be meet Azure/ms-rest-js#487
    • so the library probably should be replaced...
    • technically this ticket will be resolved in actions/toolkit Azure/ms-rest-js -> node-fetch@v2 dependency triggers "DeprecationWarning: The punycode module is deprecated" toolkit#2173
  12. silverwind commented on Oct 29, 2025

    @silverwind
    silverwind
    on Oct 29, 2025
    Author
    More actions

    I can recommend the https://www.npmjs.com/package/punycode.js module as a replacement for the node builtin, it's the same code as the node builtin, and has an unambiguous module name.

  13. MikeMcC399 commented on Oct 31, 2025

    @MikeMcC399
    MikeMcC399
    on Oct 31, 2025
    Contributor
    More actions

    @silverwind

    I can recommend the https://www.npmjs.com/package/punycode.js module as a replacement for the node builtin, it's the same code as the node builtin, and has an unambiguous module name.

    You've given the right recommendation, however as several previous posts describe, the issue is not caused directly in the actions/setup-node repo, but in the use of @actions/cache and so it needs to be fixed there. So hopefully issue actions/toolkit#2173 will get some attention from the GitHub team soon!

  14. jsoref commented on Oct 31, 2025

    @jsoref
    jsoref
    on Oct 31, 2025
    More actions

    The upstream repo has merged a fix for this:
    https://github.com/actions/toolkit/pull/2110/files#r2482040347

    So when this repository upgrades to actions/cache v5 the problem will be resolved.

    Reacted by Mike McCready, Christian Clauss and FunctionDJ
  15. MikeMcC399 commented on Oct 31, 2025

    @MikeMcC399
    MikeMcC399
    on Oct 31, 2025
    Contributor
    More actions

    @jsoref

    The upstream repo has merged a fix for this: https://github.com/actions/toolkit/pull/2110/files#r2482040347

    So when this repository upgrades to actions/cache v5 the problem will be resolved.

    • The latest version of @actions/cache is still 4.1.0, so there is still some work to do in follow-on PRs in the toolkit repo, as mentioned in the PR Support Node.js 24 toolkit#2110 you referenced.

    • Still it is good news that significant progress is being made. 👍🏻 Thanks for providing the PR reference!

  16. v-aparnajyothi-y commented on Nov 18, 2025

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Nov 18, 2025
    Contributor
    More actions

    Hello Everyone, Thank you once again for reporting this issue. We are currently working with the actions-cache team internally to investigate and resolve the deprecation warnings related to Node 24. Once we have an update or a resolution, we will share it here.

    If you have any additional insights or encounter related issues, please feel free to add them to this thread. We appreciate your patience and collaboration.

    Reacted by Mike McCready, Christian Clauss and Aaron Sarkissian
  17. jsoref commented on Dec 10, 2025

    @jsoref
    jsoref
    on Dec 10, 2025
    More actions
    • Fwiw, there's a pending release Prepare cache v5 release toolkit#2194, so maybe this will be fixed by January.
    Reacted by Sebastian Danielsson
  18. salmanmkc commented on Dec 11, 2025

    @salmanmkc
    salmanmkc
    on Dec 11, 2025
    Contributor
    More actions

    Maybe tomorrow, let's see if it can get approved

    Reacted by Mike McCready and Josh Soref
  19. MikeMcC399 commented on Dec 15, 2025

    @MikeMcC399
    MikeMcC399
    on Dec 15, 2025
    Contributor
    More actions
    • I'm seeing PR Bump @actions/cache to v5.0.1 #1449 to fix this issue.
    • EDIT: I don't believe that this will resolve v5 DeprecationWarning: url.parse() behavior is not standardized #1370 however
  20. silverwind
    changed the title [-]v5: DeprecationWarning: The `punycode` module is deprecated[/-] [+]v5+: DeprecationWarning: The `punycode` module is deprecated[/+] on Dec 19, 2025
  21. v-aparnajyothi-y commented on Dec 24, 2025

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on Dec 24, 2025
    Contributor
    More actions

    Hello Everyone, Thanks everyone for the continued updates and investigation here.

    As noted, the deprecation warning originates from transitive dependencies in @actions/cache. The linked PR (#1449) bumps @actions/cache to v5.0.1, which incorporates upstream changes that remove the deprecated punycode usage and should suppress this warning in Node 24+ environments.

    Once this PR is merged and released, the punycode deprecation warning reported in this issue is expected to be resolved.

    @MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?

    Thanks again for the patience and collaboration. we’ll update the thread once the fix is available in a released version.

    Reacted by Mike McCready and FunctionDJ
  22. MikeMcC399 commented on Dec 24, 2025

    @MikeMcC399
    MikeMcC399
    on Dec 24, 2025
    Contributor
    More actions

    @aparnajyothi-y

    @MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?

    I'm also not seeing this in the logs for PR #1449, so I deleted my previous comment. I'll happily check again after PR #1449 is merged.

    Reacted by v-aparnajyothi-y
  23. salmanmkc commented on Jan 2, 2026

    @salmanmkc
    salmanmkc
    on Jan 2, 2026
    Contributor
    More actions

    @aparnajyothi-y

    @MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?

    I'm also not seeing this in the logs for PR #1449, so I deleted my previous comment. I'll happily check again after PR #1449 is merged.

    Thanks yeah I wasn't able to see with my testing when investigating

  24. v-HarithaVattikuti
    closed this as completedin #1449on Jan 13, 2026
  25. MikeMcC399 commented on Jan 15, 2026

    @MikeMcC399
    MikeMcC399
    on Jan 15, 2026
    Contributor
    More actions

    This was resolved in actions/[email protected]

    Reacted by Josh Soref and Sebastian Danielsson
  26. anaPerezGhiglia
    added a commit that references this issue on Jan 23, 2026

    Upgrade setup-node action to version 6.2.0

    7595a51
  27. xilec
    added a commit that references this issue on Jul 13, 2026

    ci: fix punycode/url.parse deprecation warnings from actions/setup-no…

    dabadb0
  28. Mariatta
    added a commit that references this issue on Nov 18, 2026

    Update actions/setup-node and actions/checkout to v7 (#16)

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

Metadata

Metadata

Assignees

  • @v-aparnajyothi-y
    v-aparnajyothi-y

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.