Js error in NodeJS running server.js

  node.js, question

After testing with sample code, how can I report an error?

var http = require('http');
 
 http.createServer(function (request, response) {
 
 //Send HTTP Header
 // HTTP status value: 200: OK
 //content type: text/plain
 response.writeHead(200, {'Content-Type': 'text/plain'});
 
 //Send response data "Hello World"
 response.end('Hello World\n');
 }).listen(8000);
 
 //The terminal prints the following information
 console.log('Server running at http://127.0.0.1:8000/');

图片描述

The path should be wrong, under which folder is your server.js located?