![]() |
VOOZH | about |
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.
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.
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:
node --run command has been stabilized.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.
If you’re still using a 32-bit Windows operating system, Node.js 23.0.0 will no longer function.
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.
The Node.js test runner makes it possible to create JavaScript tests. Here are some of the enhancements to the test runner:
--test is not used.Other changes to Node.js in v23 include:
You can read the entire Node.js change log here.
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.