# Deprecation warnings with v4.0.2

**URL:** https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526
**Category:** General
**Created:** [15 July 2024 16:42 UTC](https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526 "2024-07-15T16:42:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![frankynpm](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@frankynpm](https://discourse.nodered.org/u/frankynpm)
#### Post date: [15 July 2024 16:42 UTC](https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526/1 "2024-07-15T16:42:10Z")

</div>

Just did a fresh install of node js v22.4.1 and of node red v4.0.2 and I am getting the following:

(node:7332) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead. (Use `node --trace-deprecation ...` to show where the warning was created)

(node:7332) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

Any help would be welcomed.

thanks

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [15 July 2024 17:17 UTC](https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526/2 "2024-07-15T17:17:03Z")

</div>

These are simply warnings about dependencies, you can ignore them.

Dependencies get updated with new releases but some dependencies are buried several layers deep so Node-RED is dependent on dependency authors to also update. Dependency logjams can be difficult at times. 🙂

---

<div class="post-metadata">

### Author: ![RvG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rvg/32/96613_2.png) [@RvG](https://discourse.nodered.org/u/RvG)
#### Post date: [14 August 2024 09:00 UTC](https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526/3 "2024-08-14T09:00:27Z")

</div>

There's a ticket [Usage of deprecated functions · Issue #4723 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/4723) that mentions `util.log`, I don't see upstream work mentioned there.

And there's a ticket about `punycode` [Deprecation warning about 'punycode' (when running on Node.js v21.1.0) · Issue #4424 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/4424), which does rely on upstream work.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 November 2024 09:01 UTC](https://discourse.nodered.org/t/deprecation-warnings-with-v4-0-2/89526/4 "2024-11-12T09:01:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
