I keep getting this message when I'm trying to connect to localhost:3000 (Visual Studio Code, Node JS). I am not sure how to correct this.Edit: I corrected my file to server.js but I am still getting the same message. Any help is appreciated
Here is my code for server.js
const express = require('express'); const path = require('path'); let initial_path = path.join(__dirname, "public"); const app = express(); app.use(express.static(initial_path)); app.get('/', (req, res) => { res.sendFile(path.join(initial_path, "home.html")); }) app.listen("3000", () => { console.log('listening......'); }) And my code for package.json
{ "name": "bloggin-site", "version": "1.0.0", "main": "server.js", "scripts": { "start": "nodemon server.js" }, "author": "", "license": "ISC", "dependencies": { "express-fileupload": "^1.2.1", "express.js": "^1.0.0", "nodemon": "^2.0.15" }, "devDependencies": {}, "description": "" } 
servor.jstoserver.js. Spot the difference? Also, moveserver.jsout of thepublicfolder/directory.node server.jsornpm run start? The reason this error occurs is because the file is non-existent (likely because it's being referenced incorrectly).