Blog
SavedSearch
Visit Hostlelo

Node.js 20 Is End of Life: Move Your cPanel App to Node 22

Node.js 20 stopped getting security fixes in April 2026. Here is how to back up, test and move a cPanel Application Manager app to Node 22, step by step.

The short answer

Node.js 20 reached end of life on 30 April 2026 and no longer gets security patches, and cPanel marked ea-nodejs20 as end of life on 18 November 2026. Back up your app, test it by hand with /opt/cpanel/ea-nodejs22/bin/node, rebuild its packages, update it in Application Manager and restart it with tmp/restart.txt. Node 22 is supported until 30 April 2027, so plan your next move too.

Reading options

On this page

Node.js 20 reached end of life on 30 April 2026, so it no longer gets security fixes, and cPanel marked its ea-nodejs20 package as end of life in EasyApache 4 25.97 on 18 November 2026. If your cPanel app still runs on Node 20, it keeps working today, but every new security hole found in Node 20 stays open on your server. By the end of this guide you will have moved one app to Node 22, tested it, and checked that it really runs on the new version.

What Node.js end of life actually means for your app

Node.js is the program that runs your JavaScript on the server. Each major version, like 20 or 22, gets updates for a fixed time, and then the project stops.

The Node.js team says it plainly on its end of life page: an EOL version "will no longer receive updates, including security patches." EOL is short for end of life.

Think of it like a car model the maker has stopped supporting. The car still drives. But when a fault is found in the brakes, there is no recall and no new part, and you keep driving with the fault.

At the time of writing (2 December 2026), the official release schedule looks like this for the versions that matter here:

  • Node.js 20: end of life on 30 April 2026.
  • Node.js 22: LTS since 29 October 2024, in maintenance since 21 October 2025, end of life on 30 April 2027.
  • Node.js 24: supported until 30 April 2028.

LTS means Long Term Support, the stable line most production apps should use. Maintenance is the later part of LTS, when a version mostly gets security and important bug fixes.

Why this matters: Node 22 is the newest version that cPanel's own Node.js guides list as an EasyApache package. It is a safe step today, but it has its own end date in April 2027. Treat this move as the near-term fix, and plan the next one.

Heads up: cPanel's release notes show recent security updates for ea-nodejs22, such as Node.js 22.23.5 in EasyApache 4 25.95, which fixed 16 CVEs. CVEs are publicly listed security bugs. Node 20 will not get fixes like these anymore.

Before you start

Give yourself a calm setup. Most problems in a Node upgrade come from rushing, not from Node itself.

  • SSH access to the account as the cPanel user. SSH is a secure text login to your server. cPanel's guide says to do app work as the cPanel user and not as root, because that is a security risk.
  • Your cPanel login, so you can open cPanel > Software > Application Manager.
  • A backup of the app folder, for example /home/exampleuser/nodeapp.
  • A copy of the app's environment variables. These are the settings your app reads at start, like NODE_ENV or a database password. Write them down from Application Manager before you change anything.
  • A test window: a quiet hour when a short outage will not hurt your visitors.
  • About 30 to 60 minutes for a simple app, and more if your app uses many packages.

If you run your own VPS with WHM, you also need root access to install the new Node package. WHM is the server admin panel that sits above cPanel.

Quick tip: if you are new to how domains point at a hosting account, read our guide on how to map a host to a domain first. It makes the browser checks later in this guide easier to read.

Move a cPanel app from Node 20 to Node 22

Here is a made-up example so the steps feel real. Made-up example: Amira runs a small booking API in /home/exampleuser/nodeapp on the domain example.com. It was set up on Node 20 two years ago, and she wants it on Node 22 before her busy season.

We will follow her steps. Swap in your own user name, folder and domain.

Step 1: Find the Node version your app uses now

Log in over SSH as your cPanel user, not as root.

ssh exampleuser@example.com

cPanel installs its Node packages under /opt/cpanel, in folders named after the package, such as ea-nodejs20 or ea-nodejs22. List them to see which versions the server has.

ls -d /opt/cpanel/ea-nodejs*

You might see one line, like this.

/opt/cpanel/ea-nodejs22

Then ask each installed version for its exact number. Change 22 to whatever folder you saw.

/opt/cpanel/ea-nodejs22/bin/node -v

The answer starts with a v and the major version, for example v22.23.5. If you only see ea-nodejs20, the server does not have Node 22 yet. On shared hosting, ask your host to install it. On your own VPS, jump to the WHM section below, then come back.

Also check what your app itself asks for. Many apps say which Node versions they support in a field called engines in package.json.

grep -A 3 '"engines"' /home/exampleuser/nodeapp/package.json

If it says something like "node": "20.x", the app's developer pinned it to Node 20. You will want to change that to allow 22, or ask the developer to.

Step 2: Back up the app folder and its settings

Make a compressed copy of the whole app folder in your home directory. The -C part tells tar to work from your home folder, so the archive holds a clean nodeapp folder.

tar -czf /home/exampleuser/nodeapp-backup-2026-12-02.tar.gz -C /home/exampleuser nodeapp

Check that the file exists and is not tiny.

ls -lh /home/exampleuser/nodeapp-backup-2026-12-02.tar.gz

Next, open cPanel > Software > Application Manager, find your app, and click Edit. Copy every environment variable name and value into a safe note. Do not paste passwords into chat tools or tickets.

Heads up: tar copies files only. If your app uses a database, back that up separately with the tool you normally use.

Step 3: Test the app by hand on Node 22

Before you touch the live setup, run the app once by hand with Node 22. cPanel's guide uses the same method to test a new app.

First, go into the app folder.

cd /home/exampleuser/nodeapp

Then put Node 22 first in your PATH for this session. PATH is the list of folders your shell searches when you type a command. cPanel's guide shows this exact line.

export PATH=/opt/cpanel/ea-nodejs22/bin/:$PATH

Now confirm the shell picks the right Node.

node -v

You should see a version that starts with v22. If you still see v20, the export did not take, so run it again and check the folder name.

Step 4: Reinstall dependencies for Node 22

Your app's packages live in node_modules. Some packages contain compiled code, called native add-ons, that is built for one Node version. Those often break when Node changes.

If your app has a package-lock.json file, a clean install is the safest choice. The npm docs say npm ci needs an existing package-lock.json and is meant for a clean install of your dependencies.

npm ci

If there is no lock file, or you want to keep the current node_modules, rebuild instead. The npm docs say npm rebuild is useful when you install a new version of Node.js and need to recompile your C++ add-ons.

npm rebuild

Read the output. A few warnings are normal. Lines that say a build failed are not, so stop and see the troubleshooting section.

Quick tip: if npm -v does not print a version after the export line, npm is not where you expect. Ask your host where npm lives for their Node 22 package.

Step 5: Start the app once by hand

cPanel's guide tests apps by starting them directly with the Node binary. Use your real start file. app.js is the name cPanel's guide uses and recommends.

/opt/cpanel/ea-nodejs22/bin/node app.js

In cPanel's own example, a small test app prints a line like this.

Server running at http://127.0.0.1:3000

Your app may print something different. What matters is that it starts and does not crash. Open a second SSH window and ask the app for a page, using the port your app listens on.

curl http://127.0.0.1:3000

When you are happy, stop the test run in the first window. If you started it in the background, cPanel's guide shows how to find it with ps aux | grep app.js and stop it with kill and its process number.

Why this matters: this hand test catches most breakage before your visitors see it. If the app will not start here, it will not start under Application Manager either.

Step 6: Point the live app at Node 22 in Application Manager

Now update the registered app. cPanel's Application Manager documentation is direct about this: when one Node.js package is installed, the others are uninstalled, and you must update existing applications to use the new version. New apps use the newest installed version.

Open cPanel > Software > Application Manager. Find your app in the list and click Edit. Check each field against your notes:

  • Application Name: the label you gave the app.
  • Deployment Domain: the domain or subdomain that serves it, here example.com.
  • Base Application URL: the address you visit in a browser.
  • Application Path: the folder, relative to your home directory, here nodeapp.
  • Development or Production: the environment the app runs in.
  • Environment Variables: the names and values you saved in Step 2.

Click Deploy to save. cPanel's documentation lists no Node version selector in this form, and says new apps use the newest installed Node.js package. If you are unsure which Node the app now uses, ask your host to confirm. That answer is quick for them to check.

Heads up: environment variables only work if your host has installed the Apache module ea-apache24-mod_env. If your variables vanish after deploy, that module is the first thing to ask about.

Step 7: Restart the app

Application Manager runs Node apps through Passenger, a tool that starts and restarts web apps for Apache. Passenger restarts an app when you touch a file named restart.txt in the app's tmp folder. cPanel's guide says you must create that tmp folder yourself.

Create the folder if it is missing.

mkdir -p /home/exampleuser/nodeapp/tmp

Then touch the restart file. "Touch" just updates the file's time stamp, or creates it if it does not exist.

touch /home/exampleuser/nodeapp/tmp/restart.txt

You need to touch this file each time you want Passenger to restart the app. The next request to your site starts the app fresh.

If you manage the server: install Node 22 yourself

On shared or managed cPanel hosting, your host installs Node packages for you. If you run your own server with WHM, the steps depend on the operating system.

On AlmaLinux or Rocky Linux with WHM

cPanel's Node.js installation guide says to install the package in the Additional Packages section of EasyApache 4, at WHM > Software > EasyApache 4.

  1. Log in to WHM as root.
  2. Open WHM > Software > EasyApache 4.
  3. Find the Additional Packages section and select ea-nodejs22.
  4. Follow the interface's prompts to apply the change, and wait for it to finish.

The same guide says you can also use your package manager instead of the interface. On AlmaLinux and Rocky Linux the package manager is usually dnf, run as root.

dnf install ea-nodejs22

Remember the warning from Step 6: installing one ea-nodejs package removes the others. Plan this for your test window, and update every Node app on the server right after.

Heads up: cPanel's guide says CentOS 7 servers can only install ea-nodejs16. If you are still on CentOS 7, a Node 22 move means moving to a newer operating system first, which is a bigger job.

On Ubuntu with cPanel

cPanel's EasyApache Node packages are not the path on Ubuntu. The cPanel guide gives NodeSource commands instead, where the number in the address is the Node version you want. For Node 22, run these as root.

curl -s https://deb.nodesource.com/setup_22.x | sudo bash

Then install Node from that new source.

apt install nodejs

The same guide installs Passenger for Apache, which Application Manager needs.

apt install ea-apache24-mod-passenger

Check the result with plain node -v. On Ubuntu, Node is not under /opt/cpanel, so the ea-nodejs22 paths in this guide do not apply there.

On other panels

If your host uses a different panel, or a different Node selector tool, follow its documentation. The ideas stay the same: back up, test on Node 22 by hand, reinstall packages, switch, restart, and check.

How to check it worked

Do these checks right after the restart, while your notes are still open.

First, confirm the Node binary you tested is the version you expect.

/opt/cpanel/ea-nodejs22/bin/node -v

You want a line that starts with v22.

Next, open your site in a private browser window, so old cached pages do not fool you. Click through the parts that matter most: the home page, a login, a form, a page that reads from the database.

Then check the response headers from the command line. The -I option asks curl for the headers only.

curl -I https://example.com

The first line should show a success code, something like this.

HTTP/2 200

A 200 means the page loaded. A 301 or 302 is a redirect, which can be fine if your site sends visitors to another address, like the www version. A 500 or 503 means the app is failing, so go to the troubleshooting section.

Finally, look at your app's logs. cPanel's guide gives an example error log folder for a Node app: /home/user/nodejsapp/logs. For our example, that would be /home/exampleuser/nodeapp/logs if your app writes logs there.

Quick tip: if you want to understand what sits between a browser request and your app, our explainer on what web hosting is covers the basics in plain words.

Troubleshooting

Here are the problems I see most often after a Node version change. Each one has a symptom, a likely cause and a fix.

The site shows an error page right after the switch

  • Symptom: the browser shows a server error, and curl -I returns a 500 or 503 code.
  • Likely cause: a package in node_modules was built for Node 20 and will not load under Node 22.
  • Fix: go back to Step 4 and run npm ci or npm rebuild with Node 22 first in your PATH, then touch tmp/restart.txt again.

node -v still says v20 in your SSH window

  • Symptom: you ran the steps, but node -v prints a version starting with v20.
  • Likely cause: your shell still finds the old Node first, often because a line in .bashrc sets the Node 20 path.
  • Fix: open ~/.bashrc and change any ea-nodejs20 path to ea-nodejs22, then log out and back in. cPanel's guide shows the export PATH line you can keep there.

Environment variables are missing after deploy

  • Symptom: the app starts but cannot reach the database, or acts like it is in development mode.
  • Likely cause: variables were lost when you edited the app, or the server lacks the ea-apache24-mod_env module.
  • Fix: re-enter the variables from your Step 2 notes in Application Manager and click Deploy. If they still do not stick, ask your host to confirm ea-apache24-mod_env is installed.

Changes do not show up

  • Symptom: you updated code or settings, but the site behaves as before.
  • Likely cause: Passenger did not restart the app because the tmp folder or restart.txt was missing.
  • Fix: run the mkdir -p and touch commands from Step 7 again, then load the site. Touch the file after every change.

The app works on the main domain but not on an addon domain over HTTPS

  • Symptom: HTTP works, but the HTTPS version of an addon domain does not reach your app.
  • Likely cause: cPanel's guide says this can happen when the app's path is different from the addon domain's document root, so the SSL side lacks the app's config.
  • Fix: this needs a root-level change to Apache include files, described in cPanel's Node.js guide. On shared hosting, send that guide to your host and ask them to apply it.

npm ci refuses to run

  • Symptom: npm ci stops before installing anything.
  • Likely cause: the npm docs say npm ci needs an existing package-lock.json, and the lock file must match package.json.
  • Fix: use npm rebuild instead, or ask the developer to commit an up-to-date lock file.

Pro tips and security notes

Test first, switch second. The hand test in Step 5 takes five minutes and saves you from most surprises.

Keep your packages current too. Moving to Node 22 fixes the runtime, but old packages in node_modules can carry their own security holes. Ask your developer to update dependencies on a regular schedule.

Do one app at a time if you have several. Because installing one ea-nodejs package removes the others, every app on the server is affected at once. Have your list of apps and their settings ready before the package change.

Write down what you changed. A short note with the date, the old version, the new version and any packages you rebuilt makes the next upgrade much faster.

Plan for April 2027. Node 22 ends on 30 April 2027, and Node 24 is supported until 30 April 2028. cPanel's guides I checked do not list a Node 24 package yet, so look at the Additional Packages list in your own EasyApache 4, or ask your host what comes after ea-nodejs22.

Ask your host for help when:

  • You are on shared hosting and Node 22 is not installed.
  • Your Application Manager screen has no clear way to set the version.
  • The app needs Apache include files or other root-level changes.
  • Your server still runs CentOS 7.

The one message worth forwarding

If someone else maintains your app or your server, you can send them this message as it is.

Hi, our Node.js app at example.com runs under cPanel Application Manager. Node.js 20 reached end of life on 30 April 2026 and no longer gets security patches, and cPanel marked ea-nodejs20 as end of life in EasyApache 4 25.97 (18 November 2026). Can you please:
1. Install ea-nodejs22 if it is not installed yet.
2. Test the app with /opt/cpanel/ea-nodejs22/bin/node and rebuild node_modules (npm ci or npm rebuild).
3. Update the app in Application Manager to use Node 22 and restart it with tmp/restart.txt.
4. Confirm node -v shows v22 and the site returns HTTP 200.
Node 22 is supported until 30 April 2027, so please also tell us when Node 24 is available on our server.
Thanks.

The short version: Node 20 no longer gets security fixes, so back up, test on Node 22, rebuild your packages, switch in Application Manager, and restart.

Reader questions

Will my Node.js 20 app stop working now that Node 20 is end of life?

No, it keeps running. End of life means the Node.js project no longer ships updates or security patches for it, so new security bugs in Node 20 stay unfixed.

Why move to Node 22 and not straight to Node 24?

At the time of writing (2 December 2026), cPanel's Node.js guides list EasyApache packages up to ea-nodejs22. If your EasyApache 4 Additional Packages list offers a newer version, check with your developer whether the app supports it.

How long is Node 22 supported?

The official Node.js release schedule lists 30 April 2027 as the end of life date for Node 22. Node 24 is listed as supported until 30 April 2028.

Can I keep Node 20 and Node 22 installed side by side through EasyApache?

cPanel's Application Manager documentation says that installing a Node.js package uninstalls the other Node.js packages. Plan to update every Node app on the server when the package changes.

Do I need root access to upgrade my app?

Not for the app itself: cPanel's guide says to work as the cPanel user and not as root. Installing the ea-nodejs22 package on the server does need root or WHM access, which on shared hosting means your host.

My host does not use cPanel Application Manager. Does this guide still help?

The general order still applies: back up, test on the new version, rebuild packages, switch and check. For the exact clicks, follow your panel's or Node selector tool's own documentation.

Does upgrading Node fix security problems in my npm packages?

No. Node 22 fixes the runtime, but each package in node_modules has its own updates, so ask your developer to keep dependencies current.

Sources & further reading

  1. Node.js release schedule (schedule.json)
  2. Node.js previous releases
  3. Node.js end of life
  4. cPanel release notes
  5. cPanel: How to install a Node.js application
  6. cPanel: Application Manager
  7. cPanel: Guide to Node.js installations
  8. npm docs: npm ci
  9. npm docs: npm rebuild
  10. curl man page

Originally published . About our editorial updates.

Your next project deserves a better foundation.

Explore hosting built for your next chapter.

Explore hosting

Find your next answer.

Search published guides and articles.

Ctrl / ⌘ K to open · Esc to close