Skip to content

Error message when running cucumber test with npm prefix on Windows #2274

Closed
@arbughiu

Description

@arbughiu

👓 What did you see?

There is a bug causing "It looks like you're running Cucumber from a global installation." message to occur when the following conditions occur:

  • On a windows machine
  • Running a cucumber test using an npm script defined in package.json
  • Running the npm script using --prefix.

✅ What did you expect to see?

No error message should occur on Windows, if the --prefix directory is correct.

📦 Which tool/library version are you using?

latest

🔬 How could we reproduce it?

Please see an example of the bug that can be easily replicated here:
https://github.com/arbughiu/cucumber-windows-npm-prefix

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions