参考连接:html
http://www.javashuo.com/article/p-yakbkvof-ht.htmlnode
启动使用ionic serve启动服务器以后只要一刷新界面就会致使服务器关闭,报的错误以下:git
events.js:136 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:999:13) at TCP.onread (net.js:629:25)
这个问题很奇葩啊,通过一番google以后找到以下解决办法,作个记录:github
删除node_modules/ws目录,而后在项目目录启动命令行,输入npm
npm install ws@3.3.2
等ws安装完,再启动服务器,此时再刷新就不会报错了,这个问题的缘由就是ws模块的bug,3.3.2版本的ws模块修复了问题。服务器
原文连接:https://github.com/ionic-team/ionic-app-scripts/issues/1345app