Skip to content

Issue with SlowBuffer.prototype.equal Dependency in Node.js v24.0.0 #1937

Closed
@miyu4u

Description

@miyu4u

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Node.js v24.0.0 was released on May 6th, 2025.
https://nodejs.org/en/blog/release/v24.0.0

As of this version, the runtime SlowBuffer has been deprecated.
nodejs/node#55175

This patch has broken the entire JWT dependency chain.

Related:
auth0/node-jsonwebtoken#992
nodejs/node#58211

There does not appear to be a solution at this time, so anyone encountering the same issue should continue using Node.js v23.

Library maintainers: once this issue is resolved, please update the dependency and close this issue.

Thank you for your continued hard work and support!

Minimum reproduction code

https://gist.github.com/miyu4u/18c88cdef1b582edece1b9df96ab468b

Steps to reproduce

No response

Expected behavior

build should succeed without errors and work properly.

Package version

11.0.0

NestJS version

^10.0.0

Node.js version

24.0.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions