Below the last line, the command is flashing as expected, yet I can't write any commands. I could restart the program but that does not solve the problem indefinitely. What is wrong??
Code is based on the following tutorial:
NodeJs Tutorials: Mastering NodeJS, Part 1: Introduction to Node
'use strict'
const http = require('http');
const express = require('express');
const fs = require('fs');
const configJson = fs.readFileSync('./config.json');
const config = JSON.parse(configJson);
const app = express();
app.use(express.static(config.webServer.folder));
const httpServer = http.createServer(app);
httpServer.listen(config.webServer.port, function(err){
if(err) {
console.log(err.message);
return;
}
console.log(`web server on port ${config.webServer.port}`);
});