Skip to content

Nodejs v22: DeprecationWarning: The punycode module is deprecated. #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Rotzbua opened this issue Oct 9, 2024 · 3 comments
Open

Comments

@Rotzbua
Copy link

Rotzbua commented Oct 9, 2024

Problem

node-red-dev validate

Throws a warning during step:

✅ Package uses a valid name
(node:1809) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
✅ No similar named packages found

Environment

Nodejs v22
node-red-dev 0.1.6

@twystd
Copy link

twystd commented Apr 1, 2025

Additional info:

eslint depends on ajv v6 which uses the deprecated version of punycode:

└─┬ eslint@9.23.0
  └─┬ ajv@6.12.6
    └─┬ uri-js@4.4.1
      └── punycode@2.3.1

eslint apparently have no intention of upgrading the version of ajv:

Maybe this warning could be ignored for dev dependencies.

@Rotzbua
Copy link
Author

Rotzbua commented Apr 10, 2025

@twystd I am not sure how you got this result because this project depends on an older eslint version

"eslint": "^5.16.0",

@twystd
Copy link

twystd commented Apr 10, 2025

@Rotzbua, I get the same deprecation warning when I run it on my project, which has a dev dependcy on the latest version of eslint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants