Answer the question
In order to leave comments, you need to log in
Can't start http server on node js?
The code:
var http = require('http');
var server = new http.Server();
server.listen(1337, '127.0.0.1');
server.on('require', function(req, res) {
res.end("Привет Мир!");
});
console.log('Успешный запуск');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question