Node.js unhandled 'error' event

后端 未结 6 1949
广开言路
广开言路 2021-02-02 08:14

I have written a simple code and save it in file try.js .

var http = require(\'http\');
var makeRequest = function(message) {
  var options = {
    host: \'loca         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 08:17

    Another server is running on the same port 8080 so change the port in this code or kill the port 8080 and restart it.

提交回复
热议问题