listen EADDRNOTAVAIL error in Node.js

前端 未结 11 757
陌清茗
陌清茗 2020-11-27 15:43

I installed Nginx and Node.js in my server.

When I try run my node.js file, I get an error:

node.js:201
        throw e; // process.nextTick error, or \'e         


        
11条回答
  •  余生分开走
    2020-11-27 16:31

    For me, the issue was that the IP that I wrote simply didn't exists :) usually at home I have a 192.168.x.x IP, and after a restart I had a different address ... when I tried to gulp serve my app - it had a config with the old IP ....

    as always 127.0.0.1 will work, but when you want to verify your website with other devices, you want to use the external IP 192.168.x.x ... or similar.

提交回复
热议问题