Hosting Hosting Features Spanish version

Support article

How to Run Node.js on Your Shared Hosting

Learn whether you can run Node.js apps on your shared hosting, what alternatives you have and when to move to a VPS.

Published: 12/07/2026 Updated: 12/07/2026

Introduction

Node.js is one of the most popular environments for creating modern web applications: APIs, real-time chats, applications with React, Vue or Angular, and much more.

If you’ve developed an app with Node.js and want to publish it, the question arises: can I host it on my shared hosting or do I need a VPS? The short answer is: it depends, but the most common is needing a VPS. In this article I explain why and what alternatives you have.

What Node.js needs to work

Node.js works differently from PHP. In PHP (what WordPress uses), the web server (Apache or Nginx) executes scripts when a visitor enters. In Node.js, the application is the server: it keeps running and listening for requests.

That means to host Node.js you need:

  1. Node.js installed on the server.
  2. A process running continuously (your app).
  3. A process manager like PM2 that keeps the app alive.
  4. A reverse proxy (Nginx) so your app is accessible on port 80/443.

These conditions clash with shared hosting’s philosophy, where user processes are limited.

Can Node.js run on shared hosting?

The short answer

On most shared hosting: not comfortably or recommendably. Although you can technically install Node.js via SSH, there are important limitations:

  • You can’t have processes running indefinitely. Shared hosts kill processes that consume resources.
  • You can’t open arbitrary ports. The host’s firewall usually blocks non-standard ports.
  • There’s no configurable reverse proxy. You can’t tell Apache to forward traffic to your Node app.
  • Server restarts kill your app. On shared there’s no pm2 startup that works.

The exception: cPanel with Setup Node.js App

Some cPanel hosts include a feature called Setup Node.js App that allows running Node.js applications on shared in a limited way. If your cPanel has this option:

  1. Log in to cPanel.
  2. Look for Setup Node.js App (or similar).
  3. Create an application: choose Node version, domain and entry file (for example app.js).
  4. cPanel manages the process.

[Imagen sugerida: screenshot of Setup Node.js App in cPanel]

But beware: even with this feature, shared hosting isn’t ideal for Node apps with traffic. It’s valid for development or testing, not for serious production.

Is your app static (React, Vue, Angular)?

Here’s an important case: if your app is React, Vue, Angular or any framework that generates static files, you DON’T need Node.js in production.

The process is:

  1. You develop your app with Node.js on your computer.
  2. You run npm run build.
  3. This generates a folder (usually dist/ or build/) with static HTML, CSS and JavaScript files.
  4. You upload those files to your shared hosting via FTP.
  5. The app is served as a static website, without Node.js on the server.

If your React/Vue/Angular app doesn’t need its own backend, you can host it on any shared hosting without Node.js. You just need to upload the generated files.

When you need a VPS for Node.js

You need a VPS when:

  • Your Node.js app needs a backend (API, real-time server, etc.).
  • Your app needs processes running continuously.
  • You need to open ports other than 80 and 443.
  • You need to configure a reverse proxy (Nginx in front of your app).
  • Your app has real traffic that requires guaranteed resources.

For a Node.js app in production, a VPS is the right option. At miHosting we offer managed VPS where we install Node, configure PM2 and Nginx for you.

Alternatives if you don’t want a VPS

If your Node.js app doesn’t fit on shared and you don’t want a VPS, you have other options:

1. PaaS platforms

Services like Vercel, Netlify, Render or Railway let you deploy Node.js apps without managing servers. Ideal for small and medium projects.

2. Serverless functions

If your app is small functions, you can use AWS Lambda, Google Cloud Functions or similar. You pay only for use.

3. Specialized Node hosting

Some providers offer specific hosting for Node.js, more expensive than shared but simpler than a VPS.

How to host your Node app on a miHosting VPS

If you decide to go with a VPS (the recommended option for Node in production), the process is:

  1. You hire a miHosting managed VPS.
  2. Our technicians install Node.js with NVM.
  3. We configure PM2 to keep your app running.
  4. We configure Nginx as a reverse proxy.
  5. We activate SSL with Let’s Encrypt.
  6. Done: your app accessible on your domain.

All this is covered in our managed VPS. You just upload your app and we handle the rest.

Useful tips

  • Distinguish between static app and app with backend. A generated React app is static and fits on shared. A Node API needs VPS.
  • Start with Vercel or Netlify if your app is small. They’re free to start.
  • Move to VPS when you need control or traffic. If your app grows, a managed VPS is the option.
  • Use PM2 to keep your app alive. On a VPS, PM2 restarts the app if it crashes.
  • Configure SSL. Even Node apps need HTTPS.

Common problems

My Node app crashes on shared hosting

It’s normal: processes that consume resources on shared are killed. You need a VPS.

I can’t access my app from the browser

Most likely your app’s port (for example 3000) is blocked by the shared firewall. You need a VPS where you can configure Nginx as a proxy.

Setup Node.js App doesn’t appear in my cPanel

Not all plans include it. Open a ticket and we’ll confirm if it’s available.

My React/Vue app doesn’t load images

Check you uploaded the assets or static folder inside dist/ or build/. Asset paths must be correct.

I don’t know if I need Node or just static files

If your app makes requests to an external API but doesn’t have its own backend, you probably only need to serve static files. If your app has its own server (Express, Koa, NestJS), you need Node on the server.

Frequently asked questions

Can I run Node.js on miHosting’s shared hosting?

On some cPanel plans that include Setup Node.js App, yes, in a limited way. For production, we recommend VPS.

What’s better for Node: shared or VPS?

VPS, without a doubt. Shared isn’t designed for continuous Node processes.

Can I host a React website without Node in production?

Yes. Once compiled (npm run build), React generates static files that are served from any hosting.

Do I need to know Linux to host Node on a VPS?

If it’s a self-managed VPS, yes. If it’s a miHosting managed VPS, we manage it for you.

How much does it cost to host Node on a VPS?

It depends on resources. At miHosting, managed VPS start from €9.99/month.

Choose the right environment for your Node app

Node.js is fantastic for modern applications, but needs the right environment to work well in production. For most real Node apps, a VPS is the right choice.

If you have doubts about what you need for your Node app, open a ticket from your client panel. At miHosting we advise you honestly: if your app fits on shared, we tell you; if you need a managed VPS, we tell you too.