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

arbughiu/cucumber-windows-npm-prefix

Repository files navigation

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 ❌

About

Demonstrates a small bug in cucumber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published