Node.js http.createServer how to get error

后端 未结 4 492
广开言路
广开言路 2020-12-16 13:31

I am new to node.js and am trying to experiment with basic stuff.

My code is this

var http = require(\"http\");
http.createServer(function(request,          


        
4条回答
  •  天命终不由人
    2020-12-16 14:02

    The error is emitted in the listen() method. The API documentation includes an example just for your situtation.

提交回复
热议问题