Back to Blog

How to install NodeJS on Shared Hosting Server

Jun 16, 2022 Updated: Jun 16, 2022

# 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
Contact

Got A Question For Me?

Feel free to ask anything directly on call or fill the form and I will contact back within few hours.