私はNode.jsを初めて使用し、Node.jsで単純な「hello world」プログラムを実行する際に問題に直面しています
プログラム1:
console.log("hello world");
プログラム 2:
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
}).listen(8124);
console.log('Server running at http://127.0.0.1:8124/');
両方のプログラムを実行した後、端末は次のように表示されます。
>node hello.js
...