In this article, I will show you how to install
node.js on shared hosting
if you just purchased new shared hosting and there is not node.js installed.
Don't worry in this step-by-step guide you will learn to install
I am a Windows user, for connecting to the server via
SSH i will use putty software that's free and easy to use.
I assume that you have already installed
putty if not just google you will see lots of tutorials on How to install putty on windows.
search putty in your window's search bar and click on
putty to execute.
- By Default
Port 22is used if you have not default case you You Can Find Your Port Number in Server Details
- Click on
Open Buttonif everything is correct you will see a black screen asking for
Login asenter your username here make sure to enter correct user name
Enter passwordEnter the correct password for username. *password will not be visible just type your password and hit enter If You Enter the Correct cPanel Username and Password then you will see the next screen with your username.
Run the following command to download node.js you can download any version of
node.js by changing the to a specific version. i am downloading
Now we have downloaded
node.js on our server let's Extract Node JS Files by using the following command
tar xvzf node-v8.10.0-linux-x64.tar.gz
mv node-v8.10.0-linux-x64 nodejs
cp nodejs/bin/node ~/bin
ln -s ../nodejs/lib/node_modules/npm/bin/npm-cli.js npm#That's it. Node.js and npm installed on your hosting you can verify that by running
node -vif yo see
node.jsversion it's mean you have successfully installed node.js on shared/vps hosting.
Thanks for reading :-) can you write your thoughts? and help me to improve my content by your valued suggestions? or if you have any querry please comment bellow.