Ionic serve failing after a refresh

720 Views Asked by At

I'm currently working on an Ionic 3 project and when I do ionic serve then the project runs but after first time loading the ionic serve stops with the following errors:

(node:487) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error [ERR_IPC_CHANNEL_CLOSED]: channel closed (node:487) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

And one more error sometimes:

[10:03:47] lint finished in 18.51 s events.js:182 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at exports._errnoException (util.js:1026:11) at TCP.onread (net.js:607:25)

My npm version is 5.6.0

Update: considering this issue I've considered downgrading my npm version to 5.2 but the error still presists

1

There are 1 best solutions below

0
On

I fixed the issue somehow.Don't know what solved it but here are my step.

First removed node modules folder using package-lock.json file.

remove ./node_modules/ws folder
run $ npm install [email protected]

This issue helped me this may be a temporary solution but hope it helps. A short note: I had already downgraded my npm so that might be a requirement as well