Install node js on Go Daddy Shared hosting.

In this blog, we are going to see how can we install node on GoDaddy shared hosting with multiple domains by following steps:Install node js on Go Daddy Shared hosting.

  1. SSH to the godaddy server
  2. Install nvm in the home folder
    • curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  3. nvm install (or the preferred node version) Note: if you get nvm command not found when doing $nvm –version, just close and restart the SSH termina
  4. In the folder of the site you want to run the node app, add the .httaccess file
    • ~/public_html/site folder/.htaccess
    • RewriteEngine on
    • RewriteRule (.*) http://localhost:3000/$1 [P,L]
  5. Run your app.js or node server in the site folder
    • $node app.js &

So, thanks for following this blog, and if you need any help please leave your queries in the comment box we will be happy to help you.

Install node js on Go Daddy Shared hosting.expoundsofttechsolution o