Node.js update?

Is there any type of plan to eventually update the bundled Node.js version? currently according to the FiveM docs https://docs.fivem.net/scripting-manual/runtimes/javascript/#using-node-js-apis. FiveM still uses Node version 8.0 which conflicts with packages, which requires you to convert to older releases of the package with possible bugs or flaws which causes a whole slew of other issues. Anyway, was just wondering if it was planned or even possible for that matter. I figured the best topic for this would be feature requests, if not feel free to move it or delete it!

It’s somewhere on the backlog but given the amount of patches we’ve had to make to integrate in an existing libuv loop and V8 isolate any such upgrade will likely lead to regressions at first where there’s missing V8 lock calls and similar.

2 Likes

Hi everyone, this post is already 5 years old, but libraries do not stand still and require more modern approaches, I know that since this post was written Node.js has already been updated from version 8.x to 16.x, but since then there have been several updates to the Node. js and the developers recommend to use at least v18.20.4. Please, on behalf of the whole community (I think they will be only happy to sign my message). update to v20.16.0 as it is currently the latest long-term version as of 27.07.2024.

v20 is being worked on and should be pushed very soon, they’re working out one more issue and then it should be good to go on canary.

Oh that’s cool, looking forward to it.

Haha, I just got an email from your guys’ replies. Haven’t logged into the forums in years. Brings me back to a simpler time in life when I was staying up until 3-4 in the morning developing scripts and servers. Single handedly responsible for me going to college for MIS and getting a job as a systems analyst. Thanks for the memories.

6 Likes

Do any of you have a (direct) link to a github branch or something similar where you can track the node.js module update process ?
I’d just like to know more information than just “Expect it, we’ll update soon”.

Maybe in another 5 years.

1 Like

Thx u :+1: