Skip to content

Punycode Deprecated Error, a Future Major Version of Node.js the Module Will Be RemovedΒ #1018

@mattjmoran

Description

@mattjmoran

Expected Behavior

Should not receive a punycode deprecation warning for running clasp push or other clasp commands that rely on punycode.

Actual Behavior

When running clasp push or other clasp commands that rely on punycode, the following deprecation error occurs:

(node:79914) [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 can be resolved by using the userland-provided Punycode.js instead, per the Node.js v22.9.0 documentation. Steps to resolve the issue are detailed in the provided documentation.

Steps to Reproduce the Problem

  1. Run clasp push or other clasp commands that rely on punycode
  2. Results in the following error:
(node:79914) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

Specifications

  • Node version (node -v): 22.9.0
  • Version (clasp -v): 2.4.2
  • OS (Mac/Linux/Windows): Mac

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