• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

How to install node.js on your shared server?

Daniel Wren

  • 3 min read
How to install node.js on your shared server?

Generating audio, please wait...

Most of the good web hosting companies now a days, do provide node.js support. You could check whether it is already running by getting a shell access from the provider and running the following commands:

# which node

/usr/local/bin/node

# which npm

/usr/local/bin/npm

As a tip, when you write a node.js script and make it executable, donʼt give the absolute path, instead use the line as below:

#!/usr/bin/env node

This way you can ensure that the nodemon / forever / node in your $PATH variable is taken.

If you are getting a successful answer similar to below, you are good to go. If not, you will have to install node.js using nvm, which is Node Version Manager.

GitHub – creationix/nvm: Node Version Manager – Simple bash script … You would have to restart the terminal or re-read the profile. On successful installation, you would get the version, using

nvm - -version

If you are encountered with an error, on installation of

Promotional banner

npm install node

like below, you are stuck. Things may not move forward easily. This is normally as a result of resource limitations imposed by the host.

bash: fork: retry: Resource temporarily unavilable

While running your first node.js app, you will also have to make sure that whatever port your app, tries to open and make available for others to open, is accessible from outside. Most web hosting companies will have restrictions imposed on ports. Another chance is that your application is opening a port, say 3000, but yet another node.js app is running on the same. How do you figure it out whether port 3000 is open ? You can do a telnet localhost 3000 (considering port number is 3000), and if you are getting a response, as below, that means port is open. It also implies to try another port 🙂

telnet 127.0.0.1 3000

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

quit

Avoid running port scanning to know the open ports and you may risk your IP to be blocked by the firewall. You can access the app, by calling your website name. All you have to do is, write a rewrite rule, similar to the one below and put it in your .htaccess.

RewriteEngine On

RewriteRule ^$ http://127.0.0.1:PORT/ [P,L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ http://127.0.0.1:PORT/$1 [P,L]

Now you are done with your node.js application hosting.

Let us take care of your servers 24/7/365. Get rid of all the hassles of server management.

  • server
  • Sever management
Promotional banner
Promotional banner
How to install node.js on your shared server?

Everything about SWAP in Linux – why do we need swapping ?

Everything about SWAP in Linux – why do we need swapping ?
  • Linux
  • server
  • Sever management
logo

How to secure SSH access to your server using TORʼs hidden service ?

How to secure SSH access to your server using TORʼs hidden service ?
  • Linux
logo

How to stand out from the crowd by providing 24*7 customer support?

How to stand out from the crowd by providing 24*7 customer support?
  • Customer Care
logo

Init v/s Systemd

Init v/s Systemd
  • Linux
logo

Posts by Daniel Wren

An innovative and dedicated IT professional who is very curious to solve and find solutions to seemingly difficult tasks.