meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
497 stars 117 forks source link

Error: listen EADDRINUSE: address already in use 127.0.0.1:2121 #76

Closed vomc closed 4 years ago

vomc commented 4 years ago

Describe the bug Error: listen EADDRINUSE: address already in use 127.0.0.1:2121 after installing plugin according to the README and then restarting cypress

To Reproduce Steps to reproduce the behavior:

  1. Install this plugin and follow the README exactly

    Clean up the cypress.json config so that it is valid json...

  2. Restart cypress
  3. See Error: listen EADDRINUSE: address already in use 127.0.0.1:2121 in the app

Expected behavior I would expect that the plugin works

Screenshots Screenshot 2019-11-21 at 14 39 31

Desktop (please complete the following information):

kmsauter commented 4 years ago

The error message you're seeing is because the port 2121 is being used by something else on your computer. In your cypress.json file, set the serverPort to something other than 2121 (3000 worked for me).

"cypress-plugin-snapshots": { "serverPort": 3000" }