Skip to main content

JavaScript

This page describes tools commonly used with JavaScript.

Build tools​

The most widely used build tools for JavaScript are npm and Yarn.

npm​

To use Cucumber with npm, make sure that:

  • Node.js is installed
  • npm is installed

Cucumber.js is available as an npm module.

Add @cucumber/cucumber as a development dependency:

npm install --save-dev @cucumber/cucumber

Yarn​

To run Cucumber with Yarn, make sure that:

  • Node.js is installed
  • Yarn is installed

Add @cucumber/cucumber as a development dependency:

yarn add --dev @cucumber/cucumber