cPanel Marks Node.js 20 End of Life: Move to Node 22
cPanel marked its Node.js 20 package end of life on 18 November 2026. Check which Node your app uses, back it up, and switch it to Node 22 safely.
The short answer
On 18 November 2026, cPanel's EasyApache 4 version 25.97 marked its Node.js 20 package (ea-nodejs20) as end of life, months after Node.js 20 itself reached end of life on 30 April 2026. If your app runs on cPanel, check its version over SSH, back up the app folder, test it on Node 22, then have ea-nodejs22 installed, reinstall dependencies and update the app in Application Manager. Node.js 22 is supported until 30 April 2027, so plan your next upgrade too.
Reading options
On this page
- What is a Node.js app on cPanel, really?
- Why you should move now
- Before you start
- Step by step: switch your app from Node 20 to Node 22
- If your host uses CloudLinux and "Setup Node.js App"
- If your app runs on a VPS without cPanel
- How to check it worked
- Troubleshooting
- Pro tips and security notes
- The one message worth forwarding
- Reader questions
- Sources & further reading
If your Node.js app on cPanel still runs on Node.js 20, it is time to move it to Node.js 22. Node.js 20 stopped getting security fixes from the Node.js project on 30 April 2026, and cPanel has now followed.
On 18 November 2026, EasyApache 4 version 25.97 shipped one short line in its change log: "Mark ea-nodejs20 as end of life." EasyApache 4 is the tool cPanel servers use to install Apache, PHP and Node.js, so that line is cPanel flagging the Node 20 package. The change log does not define what end of life means for the package, so treat it as a signal to plan the move.
By the end of this guide you will know which Node version your app really uses, how to switch it to Node 22 with a backup ready, and how to prove the switch worked.
What is a Node.js app on cPanel, really?
A Node.js app is a program written in JavaScript that runs on the server and answers web requests. It is a long-running process: it starts once and then waits in the background for visitors.
On a standard cPanel server, a helper called Phusion Passenger starts your app, keeps it alive and passes visitors to it. cPanel calls the screen where you register the app Application Manager.
Think of a restaurant kitchen. Your app is the cook and Node.js is the stove. Today you are swapping the stove, and you want to check that every dish still comes out right.
If the idea of a server running your code is still a bit fuzzy, our explainer on what web hosting is covers the basics first.
Here is what a cPanel server installs for Node. EasyApache 4 ships packages named ea-nodejs16, ea-nodejs18, ea-nodejs20 and ea-nodejs22, and each one lives in its own folder such as /opt/cpanel/ea-nodejs22/bin/node. The two digits at the end are the Node major version.
Why you should move now
Node 20 is already past its end date. The official Node.js schedule lists v20 as ending on 2026-04-30, and the Node.js releases page now marks v20 as "EOL", which means end of life.
The Node.js project is clear about this: "Production applications should only use Active LTS or Maintenance LTS releases." LTS means long-term support, the release lines that get fixes for a long time.
On the cPanel side, Node 22 keeps getting updates. At the time of writing (23 November 2026), EasyApache 4 version 25.95, released on 11 November 2026, updated ea-nodejs22 from v22.23.4 to v22.23.5 with a batch of security fixes.
Heads up: cPanel's change log says Node 20 is "end of life" but does not spell out what happens to servers that still have it. My reading, and this is inference, is that the package simply stops getting updates and may be removed later. Ask your host what they plan for your server.
Why this matters: Node 22 is not a forever home either. The official schedule ends v22 on 2027-04-30, about five months from now. Node 24 ends on 2028-04-30 and Node 26 on 2029-04-30, but in the cPanel pages I checked today I found no ea-nodejs24 or ea-nodejs26 package. So move to 22 now, and ask your host about their plan for the next step.
Before you start
Run through this list first.
- You can log in to cPanel for the account that owns the app.
- You have SSH access as the cPanel user. cPanel's own guide says to do Node work as the cPanel user and never as
root, because running as root is a security risk. - You know which app you are moving, its folder (this guide uses
~/nodejsapp) and the address people use to reach it. - You have a copy of the app's code somewhere safe, ideally in Git.
- You have about an hour, and you pick a quiet time for your visitors.
- You accept the risk: the app may be down for a few minutes, and an app with old dependencies may need fixes.
Quick tip: on shared hosting you may not control the Node version at all. On a standard cPanel server, Node packages are installed server-wide by whoever runs WHM, the admin panel above cPanel. If that is your host, you will do the checks and the testing, and they will do the install.
Made-up example: Priya, an invented shop owner, wakes up to find her host installed Node 22 overnight. Her order form breaks because one package was built for Node 20, and she has no backup. With the steps below, she would have tested first and had a way back.
Step by step: switch your app from Node 20 to Node 22
Step 1: Find out which Node your app uses
Log in over SSH as your cPanel user. The first command lists the Node packages installed on the server.
ls -d /opt/cpanel/ea-nodejs*If you only see /opt/cpanel/ea-nodejs20, your server is still on Node 20.
Next, check which node your shell finds and its version. The second line checks whether your .bashrc file points to a specific Node folder, which cPanel's guide suggests as an optional step.
which node; node -v
grep -n "ea-nodejs" ~/.bashrcIf node -v prints something starting with v20., your shell uses Node 20. If which node prints nothing, your shell has no node on its path, which is normal on many cPanel accounts.
Finally, look at what your app says it needs. This command prints the engines field from package.json, the file that lists your app's settings and dependencies.
grep -A 3 '"engines"' ~/nodejsapp/package.jsonIf you see something like "node": "20.x", you will update that later. If nothing prints, your app does not pin a version.
Step 2: Back up the app folder
Before you touch anything, make a full copy. This command packs the whole app folder, including node_modules and any .env file, into one dated archive in your home folder.
cd ~ && tar -czf nodejsapp-backup-$(date +%F).tar.gz nodejsapp
ls -lh ~/nodejsapp-backup-*.tar.gzYou should see a file with today's date and a size that looks reasonable for your app. If it is only a few bytes, something went wrong, so stop and check the folder name.
Also open cPanel » Home » Software » Application Manager, click Edit next to your app, and write down every environment variable and its value. Environment variables are settings such as database passwords that the app reads when it starts. You want them on paper in case you need to register the app again.
Step 3: Test the app on Node 22 before the server changes
You want to know about problems before your visitors do. On a standard cPanel server you usually cannot run Node 20 and Node 22 side by side, so test on your own computer or a spare VPS with nvm, a small tool that installs several Node versions for one user.
These commands install Node 22, switch to it, reinstall your dependencies from the lock file and run your tests.
nvm install 22
nvm use 22
node -v
npm ci
npm testnode -v should print a version starting with v22.. The npm ci command needs a package-lock.json file, and it deletes any existing node_modules folder before it installs, so run it in a copy of your project.
Then start the app and click through the pages that matter most, such as login and anything that talks to a database. If something breaks here, nobody is watching.
Step 4: Get ea-nodejs22 installed on the server
If you are on shared hosting, send your host the message at the end of this post and wait for their reply. If you run your own cPanel server and have WHM root access, you can do it yourself.
In WHM, go to WHM » Home » Software » EasyApache 4, click Customize on the profile you use, open the Additional Packages section, select ea-nodejs22, then go to Review and click Provision. Click Done when the build finishes.
Heads up: cPanel's Application Manager documentation says, "When you install a Node.js package, it will uninstall any other Node.js packages." That means every Node app on the server moves at once, yours included. Check the Review screen, which lists what will be installed and uninstalled, before you click Provision.
If you have root access, this command, from cPanel's Passenger documentation, shows your Passenger application settings. It only exists when the ea-passenger-runtime package is installed.
/usr/local/bin/ea-passenger-runtime-applications-settingsStep 5: Point your shell at Node 22
Back as the cPanel user, check that the new package is there.
ls -d /opt/cpanel/ea-nodejs*
/opt/cpanel/ea-nodejs22/bin/node -vYou should see /opt/cpanel/ea-nodejs22, and the second line should print a version starting with v22.. At the time of writing (23 November 2026), cPanel's latest listed build is v22.23.5.
If your .bashrc had a line pointing at ea-nodejs20 in Step 1, this command changes it to ea-nodejs22 and reloads the file. If you never added that line, the second command adds the line cPanel's guide suggests.
sed -i 's#/opt/cpanel/ea-nodejs20/bin/#/opt/cpanel/ea-nodejs22/bin/#' ~/.bashrc
grep -q "ea-nodejs22" ~/.bashrc || echo 'export PATH=/opt/cpanel/ea-nodejs22/bin/:$PATH' >> ~/.bashrc
source ~/.bashrc
node -vNow node -v should print v22. followed by the rest of the version number.
Step 6: Reinstall dependencies under Node 22
Some npm packages contain compiled code, called native add-ons, that is built for one Node version. The npm docs list "Installing a new version of node.js" as a reason to rebuild them. First, check that npm is available in your shell.
npm -vIf it prints a version and your app has a package-lock.json file, this command does a clean install of every dependency under Node 22.
cd ~/nodejsapp && npm ciIf your app has no lock file, this command rebuilds the packages you already have instead.
cd ~/nodejsapp && npm rebuildIf npm -v says the command is not found, use the Application Manager instead. In cPanel » Home » Software » Application Manager, the Enable Dependencies action checks your app's npm dependencies and installs them if needed.
If your package.json pins Node 20 in its engines field, update it now. This is what a relaxed version looks like.
{
"engines": {
"node": ">=22"
}
}Quick tip: npm's docs say the engines field is advisory and only produces warnings, unless the engine-strict setting is turned on. So a pinned 20 will not always stop your install, but it will confuse the next person who reads the file.
Step 7: Update the app in Application Manager
cPanel's docs say, "You must update any existing applications to use the new version of Node.js." New apps pick the newest installed version on their own.
Go to cPanel » Home » Software » Application Manager, find your app and click Edit. Check each field: Application Name, Deployment Domain, Base Application URL, Application Path (relative to your home folder, so nodejsapp), and the deployment environment (Development or Production, with Production for a live site). Check your environment variables against your notes, then click Deploy.
The deployment domain is simply the domain or subdomain where the app answers. If that domain does not point to this server yet, our guide on how to point a domain to your host walks you through it.
Step 8: Restart the app through Passenger
Passenger restarts your app when a file called tmp/restart.txt inside the app folder is touched. cPanel's guide says you must create the tmp folder yourself and touch the file every time you want a restart.
mkdir -p ~/nodejsapp/tmp
touch ~/nodejsapp/tmp/restart.txtThere is no output when this works.
If your host uses CloudLinux and "Setup Node.js App"
Many shared hosts run CloudLinux on top of cPanel. In that case you will see Software / Setup Node.js App in cPanel instead of, or as well as, Application Manager.
cPanel's support pages say CloudLinux users can run several Node versions at the same time through CloudLinux's Node.js Selector. My reading is that the server-wide "uninstall the others" rule from Step 4 does not apply in the same way, and you may be able to choose Node 22 for your app on your own.
Open Setup Node.js App, find your app, choose Node 22 if your host offers it, then use the Run NPM Install button to install dependencies, and restart the app afterwards. Screens differ between hosts, and I could not confirm which versions CloudLinux offers today, so ask your host if Node 22 is missing.
If your app runs on a VPS without cPanel
The same idea applies on a plain VPS. If you installed Node with nvm for the user that runs your app, these commands install Node 22, make it the default for new shells and record the version in your project.
nvm install 22
nvm alias default 22
cd ~/nodejsapp && echo "22" > .nvmrc
nvm usenvm use reads .nvmrc and should print a line saying it found the file and is now using Node 22. Then run npm ci or npm rebuild and restart the app with whatever process manager you use. If you installed Node from your distro or another package source, follow that tool's own upgrade steps instead.
How to check it worked
Do these checks right after Step 8, and again the next day.
First, confirm the Node version in your shell. This prints the exact running version.
node -e "console.log(process.version)"You should see v22. followed by the rest of the version. If you see v20., go back to Step 5.
Second, open your site in a private browser window, so cached pages cannot fool you, and click through the pages you tested in Step 3.
Third, check the HTTP response from the command line. This sends a header-only request to your app's address.
curl -I https://example.com/nodejsappThe first line should show a 200 status, or a 301 or 302 if your app redirects. A 500 or 503 usually means the app did not start, so see the troubleshooting section.
Fourth, look at the app's log folder. cPanel's guide points to the logs folder inside your app folder for error messages.
ls -lt ~/nodejsapp/logs | headThe newest files should not be full of fresh errors from the last few minutes.
Troubleshooting
node -v still prints v20
Likely cause: your .bashrc still points to /opt/cpanel/ea-nodejs20/bin/, or you are still in an old SSH session. Fix: run the commands in Step 5 again, then log out and back in.
"No such file or directory" for the old Node path
Symptom: a cron job or script fails with a message like /opt/cpanel/ea-nodejs20/bin/node: No such file or directory. This is the generic shell error, and the exact wording can vary. Likely cause: the script uses the full path to Node 20, which was removed when Node 22 was installed. Fix: find every place that names the old folder and change ea-nodejs20 to ea-nodejs22.
crontab -l | grep -n "ea-nodejs20"
grep -rn "ea-nodejs20" ~/nodejsapp --include=*.sh --include=*.json"was compiled against a different Node.js version"
Symptom: the app's log shows an error that a module "was compiled against a different Node.js version using NODE_MODULE_VERSION 115" while the running Node needs 127. Those numbers come from Node's official ABI registry: 115 is Node 20 and 127 is Node 22. Likely cause: a native add-on in node_modules was built under Node 20. Fix: run npm rebuild in the app folder, or delete node_modules and run npm ci, then restart with touch ~/nodejsapp/tmp/restart.txt.
Application Manager says parameters are missing
Symptom: Application Manager shows an error that parameters are missing. cPanel's docs cover this error on the same page as the Passenger runtime settings command. Fix: ask your host to run /usr/local/bin/ea-passenger-runtime-applications-settings --fix, which cPanel's docs say verifies and, if necessary, resets the settings for Ruby, Python and Node.js.
The restart does nothing
Symptom: you change code or settings, touch the file, and the site still behaves the old way. Likely cause: the tmp folder did not exist, or you touched the file in the wrong folder. Fix: run ls ~/nodejsapp/tmp/restart.txt, and if it is missing, repeat Step 8 using the exact app path you set in Application Manager.
The site shows an error page after the switch
Symptom: the browser shows an error page and curl -I returns a 500 or 503. Likely cause: the app crashes on start under Node 22. Fix: check ~/nodejsapp/logs, then run the app by hand to see the error on screen with /opt/cpanel/ea-nodejs22/bin/node app.js, using your real startup file name. Press Ctrl+C to stop it when you are done.
Environment variables stopped working
Symptom: the app cannot find its database password or API keys. Likely cause: the variables were not carried over when you edited the app, or the server lacks the Apache module that passes them. Fix: re-add them in Application Manager from your notes in Step 2. cPanel's docs say your host must install ea-apache24-mod_env for environment variables to work.
Pro tips and security notes
Keep your backup archive from Step 2 for at least a week. If something misbehaves later, unpack it with tar -xzf and compare files.
Do not leave test processes running. Stop a hand-started app with Ctrl+C, or find it with ps aux | grep app.js and stop it with kill and its process number.
Put a reminder in your calendar for early 2027, well before Node 22 ends on 30 April 2027.
Ask a developer for help if your tests fail on Node 22 or the app has not been updated in years. Ask your host if Application Manager is missing, if ea-nodejs22 is not installed, or if you are not sure whether your server uses CloudLinux.
The one message worth forwarding
Copy this, fill in the brackets, and send it to your host or developer.
Hi, I run a Node.js app on my cPanel account [account name], at [https://example.com/nodejsapp], from the folder [~/nodejsapp].
EasyApache 4 version 25.97 (18 November 2026) marked ea-nodejs20 as end of life, and Node.js 20 itself reached end of life on 30 April 2026.
Could you please:
1. Tell me which Node.js version my app runs on right now.
2. Confirm whether ea-nodejs22 is installed on my server, or when you plan to install it.
3. Tell me if the server uses CloudLinux's Node.js Selector, so I know whether I can pick the version myself.
4. Warn me before any change to Node.js packages, so I can take a backup and restart my app straight after.
5. Share your plan for Node.js 24, since Node.js 22 reaches end of life on 30 April 2027.
Thanks!Move your app to Node 22 this week, with a backup in hand and a test run first, and start planning the next move before April 2027.
Reader questions
Will my Node.js 20 app stop working right away?
Not necessarily. cPanel's change log only says the ea-nodejs20 package is marked end of life, and it does not say when it will be removed, so ask your host what they plan for your server.
Can I switch the Node.js version myself on shared hosting?
On a standard cPanel server, Node.js packages are installed server-wide through WHM, so usually only your host can do it. If your host runs CloudLinux with Setup Node.js App, you may be able to pick a version for your own app.
Does cPanel offer Node.js 24 yet?
At the time of writing (23 November 2026), the cPanel documentation I checked lists ea-nodejs16, 18, 20 and 22, and I found no Node.js 24 package. Ask your host about their plans.
How long will Node.js 22 be supported?
The official Node.js release schedule lists 30 April 2027 as the end date for Node.js 22. After that it will no longer receive fixes from the Node.js project.
Why did installing Node.js 22 remove Node.js 20 from my server?
cPanel's Application Manager documentation says that installing a Node.js package uninstalls any other Node.js packages. Existing apps then need to be updated to the new version.
Do I need to reinstall my npm packages after the upgrade?
If your app uses packages with compiled native add-ons, yes. The npm documentation lists installing a new Node.js version as a reason to run npm rebuild, and a clean npm ci also works if you have a lock file.
Was this guide helpful?
Help us make the next update better.
Sources & further reading
- cPanel EasyApache 4 change log (2025 and 2026)
- cPanel release notes
- Node.js previous releases
- Node.js release schedule (schedule.json)
- cPanel: How to install a Node.js application
- cPanel: Application Manager
- cPanel: Using Passenger Applications
- cPanel: Guide to Node.js installations
- npm docs: npm rebuild
- nvm README
Originally published . About our editorial updates.



