Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 880 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 880 Bytes

This respository demonstrates a small issue in Cucucmber.

The bug shows the following error message generated from install_validator.ts when running a test script using npm --prefix on Windows:

It looks like you're running Cucumber from a global installation.
This won't work - you need to have Cucumber installed as a local dependency in your project.
See https://github.com/cucumber/cucumber-js/blob/main/docs/installation.md#invalid-installations

For example, using the test script in the package.json provided:

On Mac

  • npm run test - runs fine ✅
  • npm --prefix . run test - runs fine ✅

On Windows

  • npm run test - runs fine ✅
  • npm --prefix . run test - shows the error message above ❌