Ionic-cli: events.js:183 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:1024:11) at TCP.onread (net.js:615:25)

Created on 18 Dec 2017  ·  20Comments  ·  Source: ionic-team/ionic-cli

Brand new install of Ionic on Windows 10 Pro

npm i ionic cordova -g

versions
Node v 8.9.1
NPM v 5.5.1
Ionic -v 3.19.0
cordova -v 7.1.0

created app with ionic start todo blank

then run
ionic lab

Browser loads, all is fine, then I go to make change to html file and get this error

image

Tried several different versions, like an older version on ionic cli. Doesnt work.

Also tried doing an npm i incase the ionic start thing didnt work. Doesnt work.

I also tried ionic serve. This works but then as soon as you change say your home.html file, boom it breaks.

Is ionic v3 working on Windows ??? Or should I be using a Mac only? Buy the way I dont have a mac. So I cant test.

Most helpful comment

I can confirm that this was the same issue as https://github.com/ionic-team/ionic-cli/issues/2921

And it is now resolved by doing this

npm install [email protected] --save-dev --save-exact

Thank you to those who found the fixes.

All 20 comments

Update, Issue is resolved if use another browser. Just cannot use Google Chrome. Even if close chrome completely, restart and still no go

Using Internet Explorer Edge (the new one) for Windows 10 Pro

I also met this problem and asked for a solution.

I can confirm that this was the same issue as https://github.com/ionic-team/ionic-cli/issues/2921

And it is now resolved by doing this

npm install [email protected] --save-dev --save-exact

Thank you to those who found the fixes.

@wangjian1119 , please find the fix listed above. This works

@nigel-dewar You're right!
I did what you said and was able to solve my problem.

@hiuryoliveira sweet dude glad it workd for you. :-)

@nigel-dewar Thank you, It's work for me.

Same here

@nigel-dewar Thank you very. Solved one of my problem

@nigel-dewar Your solution didn't work in my case - still getting error 183. I'll keep poking at it.

Thq it Worked for me

I was getting the error just when I hit enter in the Chrome address bar to try to force a reload. npm install [email protected] --save-dev --save-exact worked for me also.

@nigel-dewar just did what you said and it works. Thank you.

No probs. Glad it works.

Sent from Samsung Mobile

-------- Original message --------
From: JM Maguigad
Date:11/01/2018 18:07 (GMT+10:00)
To: ionic-team/ionic-cli
Cc: Nigel Dewar , Mention
Subject: Re: [ionic-team/ionic-cli] events.js:183 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:1024:11) at TCP.onread (net.js:615:25) (#2922)

@nigel-dewarhttps://github.com/nigel-dewar just did what you said and it works. Thank you.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/ionic-team/ionic-cli/issues/2922#issuecomment-356857071, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AI94WCWOK2TN36Gajqx2jiZdPwcXhC9Nks5tJcFAgaJpZM4RE8Pe.

Thank You 👍 👍

npm install @ionic/[email protected] --save -dev worked for me.

Installing "ws": "3.3.2" as a dev dependency did not resolve the issue for me.

@nigel-dewar's fix is a workaround, this should not be closed, needs to be addressed with a new release.

I am trying to convert speech to text using voice base in nexmo. I have faced the issue in WebSocket client. My response error is: info:
Server listening on:8900 info: A client is connected! events.js:183 throw er; // Unhandled 'error' event Error: This socket is closed at Socket._writeGeneric (net.js:726:18) at Socket._write (net.js:786:8) at doWrite (_stream_writable.js:387:12) at writeOrBuffer (_stream_writable.js:373:5) at Socket.Writable.write (_stream_writable.js:290:11) at Socket.write (net.js:704:40) at WebSocketRequest.accept (/home/apptivo/Music/nexmoVoicebaseSample/Nexmo-RTS-Voicebase-master/WS-node/node_modules/websocket/lib/WebSocketRequest.js:450:21) at WebSocketServer.handleUpgrade (/home/apptivo/Music/nexmoVoicebaseSample/Nexmo-RTS-Voicebase-master/WS-node/node_modules/websocket/lib/WebSocketServer.js:216:19) at emitThree (events.js:141:20) at Server.emit (events.js:217:7)
How to resolved this issue ???``

npm install @ionic/[email protected] --save -dev did not work for me. I am still waiting for the solution.

This is an issue with a very general title, so likely the newer comments have similar but different issues. The ws issue was fixed in 3.1.6 by pinning the version. It continues to be pinned in later releases of app-scripts. Ensure you have the latest with these commands:

npm uninstall ws
npm install @ionic/app-scripts@latest

If you are getting an error, please create a new issue and fill out the issue template. Thanks!

Was this page helpful?
0 / 5 - 0 ratings