Hi there, To day we are going to install NODE JS on shared hosting.
To install it make sure you have SSH access. If not then you should get SSH access from your hosting provider.
SSH ACCESS ALLOWS US TO RUN COMMANDS ON SHARED HOSTING IT IS DISABLED BY DEFAULT GENERALLY
Once you have SSH access enabled you will need you run this command on your Terminal.
ssh username@hostname -p port
In above SSH command username will be (c-panel user name) and then you will add host name and the port number . If you do not have this information contact your hosting provider.
Now run these commands one by one
curl https://nodejs.org/dist/v12.6.0/node-v12.6.0-linux-x64.tar.gz | tar xz
mv node-v12.6.0-linux-x64/ nodejs
cp nodejs/bin/node ~/bin
ln -s ../nodejs/lib/node_modules/npm/bin/npm-cli.js npm
Above given commands will install node js for you. and you can check it as well.
To check use these commands
node --version npm --version
Now you can go into your project folder using
cd project folder
And can run
npm install or npm update
Commands. Hoping this article will be useful to you.