Skip to content

Error: Cannot find module 'cucumber'  #2289

@Schepetkov

Description

@Schepetkov

Precondition:
Windows:

Edition	Windows 11 Home
Version	22H2
Installed on	‎10/‎16/‎2022
OS build	22621.1702
Experience	Windows Feature Experience Pack 1000.22641.1000.0

VS Code:

Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

Reproduction steps:

  1. create a new folder
  2. open this folder via VS code
  3. run command npm install --save-dev @cucumber/cucumber
  4. run command cucumber-js --version

Actual behavior:
Error: Cannot find module 'cucumber'

Expected behavior:
display current version in my case: @cucumber/cucumber": "^9.1.2

image

PS: Is this a bug? Or I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🍼 incompleteBlocked until more information is provided⌛ staleWill soon be closed by stalebot unless there is activity❓ questionConsider using support forums: https://cucumber.io/tools/cucumber-open/support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions