Uncaught TypeError:无法在event.js:65处读取未定义的属性'parentNode'

我试图在节点js上运行一个基本的http服务器。 我试图运行从一些在线来源复制下面的代码。

var http = require('http'); var server = http.createServer(function (request, response) { console.log('request starting...'); response.write('hello client!'); response.end(); }); server.listen(8080); console.log('Server running at http://127.0.0.1:8080/'); 

我在浏览器控制台中出现以下错误:

event.js:65 Uncaught TypeError:无法在HTMLDocument的event.js:65处读取未定义的属性'parentNode'。 (jquery.js:4)at c(jquery.js:4)at Object.fireWith [as resolveWith](jquery.js:4)at ready(jquery.js:4)(anonymous)@ event.js:65匿名)@ event.js:66 c @ jquery.js:4 fireWith @ jquery.js:4 ready @ jquery.js:4 setTimeout(async)x.ready.promise @ jquery.js:4 ready @ jquery.js: 4 init @jquery.js:4 x @ jquery.js:4(匿名)@ jquery.js:4(匿名)@ jquery.js:5(匿名)@ jquery.js:6

我不明白为什么我得到这个错误。 任何线索都会有所帮助。