Error: read ECONNRESET

启动使用ionic serve启动服务器之后只要一刷新界面就会导致服务器关闭,报的错误如下: 
events.js:136 
throw er; // Unhandled ‘error’ event 
^

Error: read ECONNRESET 
at _errnoException (util.js:999:13) 
at TCP.onread (net.js:629:25) 
删除node_modules/ws目录,然后在项目目录启动命令行,输入 
npm install [email protected]

等ws安装完,再启动服务器,此时再刷新就不会报错了,这个问题的原因就是ws模块的bug,3.3.2版本的ws模块修复了问题。

猜你喜欢

转载自www.cnblogs.com/yuyedaocao/p/10182424.html