-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Forge - Command Line Interface (CLI)
-
None
-
Minor
-
Integration testing
-
S
Forge CLI still depends on version 2 of `node-fetch`, which depends on deprecated `punycode` (as of Node.js 21).
When running forge commands, using > Node.js 20, which make use of `node-fetch`, developers will get a deprecation warning like:
(node:18444) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
Stack trace:
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:114:7)
at Function._load (node:internal/modules/cjs/loader:1100:17)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/Users/bzhang/.nvm/versions/node/v22.14.0/lib/node_modules/@forge/cli/node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
This is preventing the update of versions of node.js > 20