Install Nodejs in a Shared Hosting Server (Hostgator)

 

Install Nodejs in a Shared Hosting Server

Install Nodejs in a Shared Hosting Server

 

Hello guys, recently im using nodejs in my laravel application. Im using gulp for compiling my coffeescript and less file so i need to used npm (nodejs) to install this packages.

In my local i dont have problem cause im using laravel homestead. But when im uploading it already in my site which im using only a shared hosting sites using Hostgator.

I’ve been using hostgator for 6 years already and i don’t have problem with that but sometimes as a developer we need to have an access to ssh as a root user, but thats the problem of a shared hosting they don’t allow that.

But i have a good news.. :D, i successfully installed npm in my ssh using this tutorial.


1. Make sure you can login to your shared hosting site via ssh. You can enable it in your hostgator page.

2. Once you login type this code

3. Wait before it will installed and you will see something like this.

4. After that close all your terminal and reopen it again

5. And voila, you can try it now.

6. If suddenly you experience problem saying

7. Try this step and it works for me.

  • Edit your .bashrc or ~/.profile and add this code

  • After adding it try to close again your terminal and login again, try to retype “nvm list” it should work already.

8. In my server i installed the latest nodejs version: v6.3.1

 

Install Nodejs in a Shared Hosting Server (Hostgator)

Install Nodejs in a Shared Hosting Server (Hostgator)

 

1088 Total Views 5 Views Today
Anthony Pillos

About Anthony Pillos

Developers.ph – We are Awesome. Tutorials in different programming languages like PHP,HTML5,JAVASCRIPT,CSS/CSS3,JQuery,Jquery Mobile, Responsive Design.

1089 Total Views 6 Views Today

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">