Logo

dev-resources.site

for different kinds of informations.

How to install Node on cPanel shared hosting (without root access)

Published at
6/18/2024
Categories
webdev
node
cpanel
Author
bmanish
Categories
3 categories in total
webdev
open
node
open
cpanel
open
Author
7 person written this
bmanish
open
How to install Node on cPanel shared hosting (without root access)

You will need to have access to an SSH command line; not all hosts allow this. I’ve tested this on VentraIP but it may work on other hosts too.

You’ll need to login via SSH and then run the following commands from the home folder:

Or you can use the terminal that is in cPanel.

screenshot where you can see the link the terminal

(Change the version numbers in the commands below if you’d like to use a more recent version.)

# Make a new folder for node
mkdir node
cd node
# Download and unzip node
curl -O https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.gz
tar -xvzf node-v10.15.3-linux-x64.tar.gz --strip-components=1
# Add node and npm it to PATH (and do so for future sessions too)
export PATH=$HOME/node/bin:$PATH
echo 'export PATH=$HOME/node/bin:$PATH' >> ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

After that, you should be able to run node and npm from any folder.

YOU ARE DONE! HAPPY CODING!

cpanel Article's
30 articles in total
Favicon
Run NextJS App in shared-hosting cPanel domain!
Favicon
How to deploy laravel project on cpanel or shared hosting
Favicon
Host Nextjs 14 Application on cPanel
Favicon
VPS vs. Shared Hosting: Understanding the Key Differences
Favicon
How I Deployed Next.js to cPanel on Shared Hosting
Favicon
Error yang sering di jumpai ketika Setup NodeJS App pada cPanel.
Favicon
Deploy NextJs to cPanel
Favicon
Deploy Laravel to cPanel v.2
Favicon
Need Help! php server
Favicon
cPanel Hosting vs NGINX Hosting: A Comparison for Linux Hosting
Favicon
How to Import MBOX to cPanel?
Favicon
next js app on cPanel
Favicon
Deploy Laravel to cPanel v.1
Favicon
Deploy Frontend Web Application with React to cPanel.
Favicon
Deploy Backend API with Express Js to cPanel
Favicon
Web Hosting on cPanel WHM - What and How of cPanel and cPanel Terminal Commands- A Beginner Guide
Favicon
How to create a Node.js web server with cPanel
Favicon
How to install Node on cPanel shared hosting (without root access)
Favicon
The best FREE hosting control panel & alternative to CPanel: CyberPanel!
Favicon
Unlocking Economical Potential: Low-Cost cPanel Hosting Options
Favicon
cPanel UAPI Operations for Creating Subdomains, MySQL Databases, and File Operations
Favicon
My webhosting business journey
Favicon
How to Migrate Email from G Suite to cPanel?
Favicon
Steps To Remove/Delete Domain Name from cPanel?
Favicon
Resolving cPanel Git Error Code 128: ‘Permission Denied’ Issue
Favicon
How to Deploy your Django Web App and connect a MySQL Database in cPanel
Favicon
Plesk vs. cPanel: A Comprehensive Comparison
Favicon
How to deploy django app on cpanel
Favicon
Simple Guide to Deploying Your Vite React App on Cpanel for Beginners
Favicon
How To Set Up Auto Deploy For Laravel Applications On Cpanel

Featured ones: