VOOZH about

URL: https://thenewstack.io/whats-in-the-new-node-js-and-how-do-you-install-it/

⇱ What's in the New Node.js, and How Do You Install It? - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-01-23 07:23:26
What's in the New Node.js, and How Do You Install It?
JavaScript / Programming Languages / Software Development

What’s in the New Node.js, and How Do You Install It?

The latest Long Term Support release of Node.js brings updates while maintaining its position as the go-to runtime for enterprise-scale JavaScript applications.
Jan 23rd, 2025 7:23am by Jack Wallen
👁 Featued image for: What’s in the New Node.js, and How Do You Install It?
Featured image via Unsplash+.

Node.js is still one of the most popular runtimes for JavaScript. In fact, it’s kind of a juggernaut: It has seemed unstoppable since its introduction in 2009. In fact, Node.js is the industry standard runtime for JavaScript, and is used by companies like Netflix, Uber, eBay, PayPal, LinkedIn, Trello, NASA, Walmart, Groupon and many more.

This open source, cross-platform runtime environment is an amazing tool for developing scalable network applications, and has become one of the most widely used web frameworks. One reason Node.js is so popular is that it can reduce loading time by as much as 60%. This is immensely important for applications at scale.

But what is there to be excited about in the latest release? Truth be told, you have to go back to version 23.0.0 to find a release that isn’t specifically listed as a security release. And since version 23.0.0 was released on Oct. 16, 2024, it might seem a bit long in the tooth (in tech years), but it is an LTS release, so it’s going to be sticking around for some time.

As far as what’s new in Node.js 23, let’s take a look.

There are four big highlights for this release:

  • The require(esm) statement has been enabled by default. This allows you to load ESM modules using the require() function. This is of particular use for projects that still rely on CommonJS but want to take advantage of ESM features.
  • Removed support for Windows 32-bit systems.
  • The node --run command has been stabilized.
  • The test runner has been enhanced.

require(esm)

With require(esm) enabled by default, Node.js will not longer throw the ERR_REQUIRE_ESM error when require() is used to load an ES module. If, however, the ES module being loaded contain top-level await, it can still throw ERR_REQUIRE_ASYNC_MODULE.

Windows 32-Bit Systems

If you’re still using a 32-bit Windows operating system, Node.js 23.0.0 will no longer function.

node –run

Node.js provides a built-in task runner that allows you to execute specific commands that are defined in a package.json file. This is done with the --run flag, and with version 23.0.0, the option has been improved and is now more stable.

Test Runner

The Node.js test runner makes it possible to create JavaScript tests. Here are some of the enhancements to the test runner:

  • It now supports glob matching coverage files.
  • Includes updates to v8-stats.
  • Detects-only test when --test is not used.
  • Always makes spec the default reporter.
  • Expoes lcov reporter as a newable function.
  • Supports custom arguments in run().
  • Added test:summary even.
  • Added support for coverage via run().

Miscellaneous changes

Other changes to Node.js in v23 include:

  • V8: cherry-pick cd10ad7cdbe5
  • Use GCC 12 on AIX for versions of Node.js starting with v23
  • Propagate aborted state to dependent signals before firing events
  • Change WeakMap and WeakSet comparison handling
  • Buffer: throw when writing beyond buffer
  • Buffer: Make file cloneable
  • Build: reset embedder string to “-node.0”
  • Build: Include v8-sandbox.h
  • CLI: remove deprecated v8 flag
  • CLI: remove –no-experimental-global-customevent flag
  • Crypto: runtime deprecate crypto.fips
  • Net: validate host name for server listen
  • Process: remove process.assert

You can read the entire Node.js change log here.

How To Install Node.js 23

Let’s first install Node.js 23 on an Ubuntu-based Linux distribution. To do that, follow these steps.

Install the necessary dependencies with the command:

sudo apt-get install ca-certificates curl gnupg -y

Import the necessary GPG key with the following:

Add the Node.js repository with the following command:

Update apt with:

sudo apt-get update

Install Node.js with the command:

sudo apt-get install nodejs -y

Next, we’ll install Node.js 23 on macOS. To do this, we’ll use nvm as the installer.

Download and install nvm with the command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Download and install Node.js with:

nvm install 23

Finally, we’ll install Node.js 23 on Windows, using fnm.

Download and install fnm using winget with the following command:

winget install Schniz.fnm

Install Node.js 23 with the command:

fnm install 23

You can verify the installation with the node -v command.

You should see something like this in the output:

v23.6.1

If you find that Linux still reports version 20, you’ll need to remove Node.js (sudo apt-get remove nodejs -y) and then install it with the following steps.

Download and install nvm with the command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Close and reopen your terminal window. Once the terminal is open, install Node.js with:

nvm install 23

And that’s all there is to installing the latest version of Node.js. This powerhouse runtime will serve you well for years to come.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Bit.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.