When I typed "nodemon server.js" command in the terminal, it returns the error "require('update-notifier')({ pkg }).notify();". The version of nodemon installed is nodemon@1.17.3
Below are the javascript and html used.
var express = require('express');
var app = express();
var port = 8888;
app.get('/', function(req, res, next) {
res.sendFile(__dirname + '/index.html');
});
app.listen(port, '0.0.0.0', function() {
console.log('Server running at port ' + port);
});
<!DOCTYPE html>
<html>
<head>
<title>My NodeJS Website</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>