Namecheap Shared Hosting lets you run Node.js applications directly from cPanel, so you can deploy standard apps without using SSH. The list of supported Node.js versions changes from time to time, so check the article for the current options.
This guide explains how to deploy your application in cPanel and fix common errors:
To deploy a Node.js app on Shared Hosting, first create the application environment in cPanel, then upload your project files, install dependencies, and restart the app.
Because shared servers host multiple accounts on a single machine, each Node.js application runs in its own isolated virtual environment. Once you configure that environment in cPanel, the server starts and manages the application for you.
Create your Node.js runtime environment in cPanel before uploading any project files. Follow the steps described in the How to work with the Setup Node.js App pluginarticle.
Next, add your application files to the Application root folder you defined in Step 1. Use File Manager to upload them manually, or use Git Version Control if you plan to update your application regularly.
Follow the steps:

Info: Setup Node.js App builds its own virtual environment and symlinks node_modules into your app directory. Uploading a local node_modules folder can cause conflicts and break the symlink.
Note: The screenshot is just an example. Your folder structure may differ.

Use this path if your code changes often and lives in a Git repository.
Open Git Version Control in cPanel to clone your repository and pull new commits with Update from Remote. See How to use Git Version Control cPanel plugin for full setup and .cpanel.yml deployment instructions.
Note: cPanel cannot clone a Git repository into a folder that already contains files. Clone into a separate repository folder and deploy to your Application root with .cpanel.yml, or delete the default files from your Application root before cloning.
Verify that your settings in Setup Node.js App match your uploaded files and Shared Hosting requirements before installing packages:
Info: Setting Application mode to “Production” handles NODE_ENV=production automatically.
To install your project dependencies, ensure that the package.json file sits inside the Application root folder:
And follow these steps:

cPanel installs all listed packages into your app's virtual environment.
Note: If your project does not have package.json or it uses an incompatible Node.js version, cPanel won't detect the configuration file:
See the section below for troubleshooting steps if the “Run NPM Install” button does not appear.
If you need to install additional modules via the command line, enter the application's virtual environment via SSH. Refer to this page if you're not sure how to enter the virtual environment.
Click Restart in Setup Node.js App and open your Application URL in a browser to verify the live response.
Tip: Whenever you upload new files/edit environment variables later, restart the app so the server loads the changes.
Some issues may arise when you deploy your application or upload it from your local device. Find the error/symptom below for the steps to resolve it.
Check that your code listens to process.env.PORT and that your Application startup file matches the exact filename inside your Application root folder, as described in Step 3: Check your app settings.
If the settings look correct, open stderr.log inside the Application root folder in File Manager to read the exact error message.
Restart the application via Setup Node.js App after every change, such as editing a file or updating an environment variable.
Node.js keeps your application code cached in memory once it starts, and making changes does not automatically reload the running process.
If Run NPM Install fails with an error message, check the detailed npm logs inside /home/USER/.npm/_logs/ (replace USER with your cPanel username).
Tip: Because .npm is a hidden folder, open Settings in the top right of File Manager and enable Show Hidden Files (dotfiles) to view it.
Slow responses, timeouts, or intermittent 503 errors usually mean your app is hitting Shared Hosting CPU/RAM limits. To fix that:
This button stays hidden when cPanel cannot locate/read the package.json file inside the Application root folder.
Check the file first:
If the file is present but the button still doesn't appear, try a different Node.js version.
Why this happens: Setup Node.js App reads package.json using the Node.js environment you selected. If that version is not compatible with the file's contents or the packages it lists, the environment cannot process the file. The system then behaves as if the file does not exist, and the button is hidden.
This error means Node.js is trying to load a package that is missing from your server environment. This usually happens for one of the following reasons:

For example, here we can see that the ‘express’ module is missing.


When you set up an application for a domain, the following code is added to the .htaccess file of the domain's Document Root (for subfolders, it will be located in the corresponding subfolder):
If the code in .htaccess is missing, requests will fail, and an Index of / page will be displayed at the app URL.
A quick way to fix that is to stop the app in Setup Node.js App, then start it again so the system re-adds the .htaccess rule.
This error appears when a background process is using your application's .lock file. It usually happens after starting a long-running script through Run JS Script, since cPanel has no button to stop that script once it runs in the background.
To fix the issue, stop the active process that is holding your app's .lock file via cPanel Terminal.
For detailed steps, see Managing active processes on Shared and Reseller hosting.
This error appears when you run npm commands in cPanel Terminal without entering the application's virtual environment first.
Refer to this page to access the virtual environment.
A GCC error occurs when an npm package tries to compile from source on the server and hits a compiler restriction or version mismatch:
No. Namecheap Shared Hosting runs standard Node.js apps and Express backends directly through cPanel. You only need a VPS if your app requires custom inbound ports or root access. Upgrading also makes sense when your app needs higher dedicated resources.
We update supported Node.js versions regularly to align with active LTS releases. Check the page for the current list, or open the Node.js version dropdown inside Setup Node.js App in cPanel to see what is available on your server.
No. Dedicated WebSocket servers like Socket.io rely on custom ports/persistent connections that Shared Hosting does not support. Standard HTTP long polling works as a fallback for infrequent updates. True real-time features belong on a VPS.
Move to a VPS when your app needs custom inbound ports for WebSockets or root access to install system-level software. Repeated limit alerts in cPanel's Resource Usage monitor are another clear sign that your app has outgrown a shared plan.
An app that runs on your computer can fail on Shared Hosting when it relies on local defaults, such as localhost:3000 or a .env file. The table shows what changes when the code moves to cPanel:
| Area | On your computer | On Shared Hosting (cPanel) |
|---|---|---|
| How traffic arrives | You visit localhost:3000 directly | Visitors hit ports 80 and 443, and the host proxies traffic to process.env.PORT |
| Configuration | Read from a local .env file | Set in “Environment variables” inside Setup Node.js App |
| Starting the app | You run npm run dev in a terminal | cPanel's application manager launches the Application startup file |
| Handling crashes | Errors print straight to your terminal | Visitors see a 500 or 503 error, and details write to stderr.log |
Need help? We're always here for you.