If you read my previous blog post, you know I’ve been experimenting with CDNs & VPS Servers.
This time, I wanted to use NodeJs on the Hostinger’s hosting.
Yeah, the same Cloud Global Plan 😗,
but as all the support exec. guys say, you cannot normally use NodeJs on a server that does not give you root access.
So here’s a complete info. about how I installed NodeJs on the Cloud Global plan which is not a VPS Server.
Pre-requisites => SSH Access in you cPanel / hPanel.
Enable the SSH Access in the panel & copy the ssh command
(should be something like: ssh -p PORT userId@IpAddress)
Alrighty then, let’s go.
• Open terminal & paste SSH command.
• Use command cd ~
• Type below command and hit Enter:
• Then type the command:
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
• Then install node via nvm:
nvm use node
The above code should throw this output:
Give yourself a Pat on the back,
You have successfully installed
NodeJs on your Server!
In the next blog post,
I’ll show a working example of running a NodeJs Express App on the same server. 🤩