---
title: "关于IONIC 项目read ECONNRESET错误的问题"
author: "FireFlyWithCat"
date: "2018-05-29T11:04:10Z"
tags: []
categories: ["Web前端"]
slug: "ionic-read-econnreset"
draft: false
lastmod: "2018-05-29T12:03:45Z"
id: 2423798
url: "https://fireflywithcat.iteye.com/blog/2423798"
---

最近学习Ionic+angular+cordova混合式开发，项目创建就卡了两天。使用ionic start project_name  方式创建之后，ionic serve 跑项目时报错
错误如下：
![](http://dl2.iteye.com/upload/attachment/0129/9242/305a9a3d-af44-3153-86ab-1dc9340f5a26.png)
找了各种办法，把ionic由3.20降到3.9、使用http代理等等办法都不行。最后，在github上找到了解决办法。
引起这个问题的原因是，app-script@3.1.0，依赖ws@3.3.3版本，这个问题出现在ws中。所以替换wx即可。
npm install ws@3.3.2
注：貌似该问题出现在chrome浏览器中。