Closed Schepetkov closed 1 year ago
From the output there it looks like you might have the old “cucumber” module installed, maybe globally?
Can you try removing that?
I've personally never been able to get cucumber-js to invoke that way in Windows PowerShell. When I try I get a different error than OP - specifically the global installed warning even though that is entirely erroneous. Further the script works just fine if invoked through npm test
This issue is stale because it has been open for 3 weeks with no activity. Remove the stale label or comment or this will be closed in another 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Precondition: Windows:
VS Code:
Reproduction steps:
npm install --save-dev @cucumber/cucumber
cucumber-js --version
Actual behavior: Error: Cannot find module 'cucumber'
Expected behavior: display current version in my case: @cucumber/cucumber": "^9.1.2
PS: Is this a bug? Or I'm doing something wrong?