I have a web server but I wanted to add something to my site. I found a basic template I liked that was a .js file. .html and .php files work on my site.
All that shows up when I go to the index.js file is the code within the file.
My Link XX.XX.X.XXX/index.js
Top first couple lines that display:
const cron = require("node-cron");
const express = require("express");
const fs = require("fs");
What I have tried:
I tried installing Node and NodeJS which was successful as it shows the version but nothing changed on the front end.
root@tsl_system:~# nodejs -v
root@tsl_system:~# node -v
I have looked at a few other resources but they all seem like the same steps I have previously done and I dont want to keep installing items that are truly not needed.