How to Install NodeJS on Shared Hosting cPanel

How to Install NodeJS on Shared Hosting cPanel


shared hosting servers

Most of the shared hosting providers are not allowing to install NodeJS on their servers and even no SSH access for the cPanel also. But this is the correct method of get SSH / Shell Access / Jail Shell and intall NodeJS on cPanel (CentOS) and Litespeed web server.

You can copy paste those codes for installing.

——————————————————————-
wget -qO- httpsx://cdn.rawgit.com/creationix/nvm/master/install.sh | bash

(remove x on httpsx)

export NVM_DIR=”$HOME/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”
[ -s “$NVM_DIR/bash_completion” ] && . “$NVM_DIR/bash_completion”

nvm install node
nvm use node
——————————————————————-

SSH Terminal : www.putty.org

Thank you so much for watching this video.

Deploy NodeJS App (New Release) Not with this method.

Regards,
PEEK Hosting.

31 thoughts on “How to Install NodeJS on Shared Hosting cPanel

  1. I see many people have commented about how to deploy the node.js app after installing packages, however, you seem to ignore all the comments. Does this mean you don't know the further steps?

  2. getting error ——–

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)

    nvm is not compatible with the npm config "prefix" option: currently set to ""

    Run `nvm use –delete-prefix v12.7.0` to unset it.

  3. I getting below error

    Downloading https://nodejs.org/dist/v12.2.0/node-v12.2.0-linux-x64.tar.gz

    ######################################################################## 100.0%

    Computing checksum with sha256sum

    Checksums matched!

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)

    node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)

    node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)

    nvm is not compatible with the npm config "prefix" option: currently set to ""

    Run `nvm use –delete-prefix v12.2.0` to unset it.

  4. I have installed node and node successfully, starting simple nodeJS server from my www public folder in Putty console. it shows me listening 'localhost:3000',
    But how do I see it from the internet now? When I am trying to load my url I am still getting website from Apache of shared hosting. How to redirect my traffic to node server instead?

  5. Hi, I have done exactly the same and I have successfully installed node o my shared hosting. But the problem is when I had create one express app and started it on port listing 3000, it canot be accessing. Could you please help me on the same? What should have to be done to get rest API end point? e.g. domain.in/nodeapp/, heare my node express app is in nodeapp direcotry

Leave a Reply

Your email address will not be published. Required fields are marked *