cypress: Error: Cannot find module 'fsevents' Windows
Current behavior:
Installing cypress and try to run the tests is throwing the error
Error: Cannot find module 'fsevents' from 'C:\e2e\node_modules\chokidar\lib'
Desired behavior:
Cypress should not throw the error when we try to run the tests
Steps to reproduce: (app code and test code)
Versions
cypress : “3.1.5” OS : Windows 10
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 16 (4 by maintainers)
I was using cypress with the cucumber-preprocessor plugin and importing the wrong path in the steps implementations. The correct importation is:
import {Given, When, Then, Before} from 'cypress-cucumber-preprocessor/steps'But I was trying without the “s” in “steps” or with slash after steps, and receiving this fsevent error. Hope this help someone!was there ever a resolution to this? i’m seeing the same issue and not sure what to do 😦