0

I need your help regarding node.js. I just finished a course and I want to run my code on a web hosting.

The problem is, that when I upload it per ftp, I won't see it as website (even though it has html tags in it) but as code. Is it because the web hosting isn't compatible with node.js? Or is there anything I should do beside requiring express?

Is there anything I should install or do?

The code works totally fine if I go through localhost.

Thank you a lot in advance! TheGabornator

2
  • If it's a shared hosting, you need to ask the hoster if he can install the NodeJS modules for you. Or you can search for a host with nodejs functions Commented Mar 21, 2016 at 10:27
  • Possible duplicate of Why node.js can't run on shared hosting? Commented Mar 21, 2016 at 10:40

1 Answer 1

3

Is it because the web hosting isn't compatible with node.js?

Yes.

Is there anything I should install or do?

If your only access to the host is via FTP or some web based UI, then you almost certainly need to change host. You're unlikely to have a host which lets you run Node.JS applications unless they offer you full shell access.

You need either a host which explicitly supports Node.JS or one which gives you full shell access and allows you to install software (such as a virtual machine or dedicated server).

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you so much! No, I can go through the website of the provider too if that's what you mean. Great, I will ask them then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.