'Can node.js run in any hosting provider?
Sorry for this newbie question. Can node.js run in any hosting provider like Fastdomain? We have an account in fastdomain where we upload our Website made in PHP. I allowed SSH in our host and tried installing node.js but it didn't work. I've been searching the internet but there is no exact answer to this.
Solution 1:[1]
No, Node can't run on any hosting providers, you can however deploy Nodejs projects in PAAS sites as Heroku and Linode that offer a plataform for you to deploy your app or on Cloud Hosting Providers.
The PAAS model puts the provider as responsible for infrastructure and for configuring the OS and the overall infrastructure, and you only have to worry with develop and deploy.
On other hand Nodejs can be deployed on any Cloud Hosting, once you have acess to a virtual or dedicated server you can install nodejs and the dependencies to start offering your application, in this case you are responsible for Install Nodejs, Databases, Webservers (if you don't wanna use Node's Http server).
Cloud Hosting are usually more expensive but offer more control over infrastructure, PAAS are often more easy to use from a developer point of view once that is only develop and deploy (sometimes configure like domains and other account settings).
Solution 2:[2]
I was able to install node on my shared hosting plan using nvm. You can take a look here for more information: https://heynode.com/tutorial/install-nodejs-locally-nvm/#:~:text=Using%20nvm%20(Node.,on%20a%20single%20local%20environment.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ooredroxoo |
| Solution 2 | Fariman Kashani |
