When I save my project I should run ionic lab everytime! Why

Whenever I modify my code on VS Code I have to run ionic serve or ionic lab to view the result of my changes!! Before, I was used to only save the project and see the result just in time But now I have this error when I save my project :

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1018:11)
    at TCP.onread (net.js:568:26)

So now Iโ€™m obliged to run ionic lab and wait :frowning:

Any solution please? Thank you

1 Like

If your phone is connected, please unplug it and run Ionic serve again. If it persists, run npm i -g ionic@canary then Ionic serve. Hope this helps.

What npm i -g ionic@canary does please? Thank you.

npm i -g ionic@canary

npm i = install sth. with npm
-g    = install it globally
ionic@canary = the package that is going to be installed

Thank You. But Iโ€™m interested by role of this package in my case (I think itโ€™s about Chrome browser!!?)

I had the same issue. I found the answer in this link

It seems like an issue with the last update of Google Chrome.

You can fix it manually with npm install ws@3.3.2 --save-dev --save-exact

2 Likes