Builds & Functions: Default Node.js version upgrade to 18

The default Node.js version for new sites and functions will be updated from version 16 to 18 today.

After this update, all new sites will use Node.js version 18 by default. In addition, the Node.js functions runtime will use Node.js 18 as well.

Why are we doing this?

As Node.js 18 is the current active LTS (Long Term Supported) version, updating to use Node.js 18 by default allows customers to take advantage of the latest features and benefit from the performance and security improvements that this version delivers.

What are the impacts of this change?

  • Customers no longer need to manually set the Node.js version to 18 using an environment variable or configuration file.
  • For all Node.js functions deployed after this change, Netlify will use Node.js 18 as the default runtime.
  • Re-linking a site will make the site to use node 18.

For more information see the following docs:

If you have any questions, please let us know in this thread.

If you see an error in your build with an error code like ERR_OSSL_EVP_UNSUPPORTED , it can be related to your site having node 18 version set, but our system node version being node 16.

If that’s the case, you can set your node version to 16 following this link.

When we update our system node version, announced in here, problem should be solved.