我正在尝试在 React 应用程序中使用 JSON 服务器。但是,我不断收到以下错误。
events.js:167
throw er; // Unhandled 'error' event
^
Emitted 'error' event at:
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1498:12)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:17)
我已将 npm 和 node 升级到最新版本。 我已经用 killall node 和 sudo killall -9 node 杀死了所有进程
任何想法可能导致问题?
最佳答案
我遇到了同样的问题,我运行了 killall node
然后 npm start
之后我在端口 5000 的本地服务器再次工作。希望对你有所帮助。
关于json - Node 事件.js :167 throw er;//Unhandled 'error' event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50782463/
相关文章:
c# - 模型绑定(bind)新的 Datatables 1.10 参数
jquery - 使用 JSON 将嵌套对象发布到 Spring MVC Controller
ajax - django:使用 json 对象测试基于 POST 的 View
java - 使用 JSONObject 在 Java 中为以下结构创建嵌套 JSON 对象?
json - 如何检查 Postgres 中是否存在 json 键?
javascript - 将 JSON 数据从 php 传递给 html-data 属性,然后传递给
jquery - 来源http ://localhost is not allowed by Acc