hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.78k stars 441 forks source link

DeprecationWarning: The `punycode` module is deprecated #3640

Open Rom888 opened 1 month ago

Rom888 commented 1 month ago

Expected Behavior

No DeprecationWarning

Actual Behavior

There is DepricationWarning cdktf --version

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

Steps to Reproduce

pnpm add --global cdktf-cli@0.20.7 --ignore-scripts cdktf --version

Versions

language: typescript cdktf-cli: 0.20.7 node: 22.2.0 terraform: 1.8.4 arch: amd64 os: ubuntu 23.10

innerError Error: Cannot find module '../build/Debug/pty.node' Require stack:

Error: Cannot find module '../build/Release/pty.node' Require stack:

Node.js v22.2.0

Providers

No response

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

Community Note

benkeil commented 1 week ago

That's really serious. Node 21 reached end of life.