'Cypress failed to make a connection to the Chrome DevTools Protocol: ECONNREFUSED at TCPConnectWrap.afterConnect

I'm simply trying to run some of the tests in the example folder under Integration and it will not run on Chrome. Runs on Electron and Edge but refuses to run on Chrome and throwing the attached error after unsuccessfully trying.

My version of Chrome is Version 86.0.4240.111 (Official Build) (64-bit)

Current Cypress version is - cypress": "^5.5.0

Error launching browser



Solution 1:[1]

I reinstalled Google Chrome and it started working. Simple as that.

Solution 2:[2]

I just saw this issue on mac and I just had to hard quite Chrome and relaunch it. I didn't have to uninstall and reinstall it.

Solution 3:[3]

This issue comes when there is something wrong with your localhost configurations. Please check etc/hosts file.

You can refer to this link for further clarifications.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eugen Sunic
Solution 2 Anastasia Nolen
Solution 3 Mad