Steps to configure and run a Node.js app on your Ecenica hosting.

Prerequisites

Before you begin, make sure you have the following:

  • An Ecenica plan supporting Node.js.
  • Your Node.js project that you wish to run uploaded to your webspace.
  1. Log in into cPanel. For help logging in to cPanel see Where do I login to my hosting control panel
  2. Click Setup Node.js App
  3. Click Create Application
  4. Enter the required details in the form. The application root is relative, and /home/username will be appended automatically.
  5. Click Create

Troubleshooting

Error ‘Cloudlinux NodeJS Selector demands to store node modules for application in separate folder (virtual environment) pointed by symlink called “node_modules”. That’s why application should not contain folder/file with such name in application root’ is shown when I click Run NPM Install

A: To fix check you do not already have a node_modules directory in your app folder. If you do, delete or rename it.