Log in to cPanel.
1. In the SOFTWARE section of cPanel, click on the Setup Node.js App icon to open the Node.js selector.

2. On the Node.js selector page, click on the Create Application button to start the application setup.

3. Fill in the fields on the application setup form.

Node.js version – select your perferred version from the drop down list
Application mode – chose Development or Production from the drop down list. Development may be chosen initially and changed to production later.
Application root – the file system location for application files. The entry will be appended to /home/username to form the complete path to the application files in the cPanel home directory.

Typical locations for the application root are /home/username/appname or /home/username/apps/appname. Do not put the application root inside the domain document root.

Application URL – the address of the application on the Internet.
Application startup file – the initial file that will be processed when launching the application.

5. When the form is complete, click the Create button.

6. After the application is created, an information box is displayed explaining the package.json is required to continue.

7. At this time the application will launch and display a test page. Click the Open button to see the test page.

8. Click the Cancel button to continue.

Now that a working application is installed, the environment can be enhanced with the package.json settings file and the npm package manager. To install package.json and npm, follow the steps in the next two sections.

CREATE THE PACKAGE.JSON

1. In the FILES section of cPanel, click the File Manager icon to open the File Manager.
2. In the left hand column of File Manager, click the text of the application root folder.
3. Click the +File button to create a new file.
4. In the New File dialog box, enter the file name package.json and then click the Create New File button.
5. Right-click or secondary click on the package.json file in the right-hand column of File Manager and then click Edit. An edit dialog box is displayed.
6. In the Edit dialog box, click the OK button.
7. Enter the following text in the editor screen.

{
"name": "app",
"version": "1.0.0",
"description": "My App",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

8. Click the Save Changes button to save the file.

INSTALL NPM

1. In the SOFTWARE section of cPanel, click on the Setup Node.js App icon to open the Node.js selector.
2. In the Actions column of the Web Applications list, click the pencil icon to edit the application.
3. Click the Run NPM Install button.
4. The NPM installation runs and presents a success indicator when complete.
5. To install packages with NPM and do other command line tasks related to the application, log in via SSH and enter the virtual environment for the applcation using the command shown in the information box at the top of the application setup page.

in CPanel

לקוח יקר

אנו פונים אליך לגבי עדכון בנוגע להתפרצות וירוס הקורונה (COVID-19) ברחבי העולם. ברצוננו להבטיח לך שבריאות הלקוחות והעובדים שלנו ורווחתם נמצאת בראש מעיינינו ואנחנו מחויבים באופן מוחלט להפוך את סביבת העבודה לבטוחה ככל האפשר. אנחנו מתייחסים ברצינות גמורה לבריאות ולביטחון של הלקוחות וחברי הצוות שלנו.