How to host a Node.Js application in shared hosting

How to host a Node.Js application in shared hosting

In short you first install NVM, then you install the Node version of your choice with NVM.

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

Your restart your shell (close and reopen your sessions). Then you

nvm install stable

to install the latest stable version for example. You can install any version of your choice. Check node --version for the node version you are currently using and nvm list to see what you’ve installed.

In bonus you can switch version very easily (nvm use <version>)



Leave a Reply