sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.84k stars 135 forks source link

nodejs, surge, DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. #519

Open smed79 opened 6 months ago

smed79 commented 6 months ago

Hello!

I am seeing this Deprecation Warning with node v21.5.0 and surge v0.23.1

(node:1234) [DEP0040] DeprecationWarning: The `punycode` module is deprecated.
Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

Can we get rid of this warning message? How to fix?

aldoyh commented 2 months ago

Same thing here, it's not a blocker, but it's annoying!

(node:27779) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
smed79 commented 2 months ago

Temporarely deprecation warning workaround to disable punycode module (nodejs).

export NODE_OPTIONS="--no-deprecation"