"CONFIG_FILE" is not recognized as an Internal external Command

I cloned the repo from GitHub - LambdaTest/NodeJs-Cucumber-Selenium: Run test automation on cloud with Cucumber.js and LambdaTest. This is a sample repo to help you execute Cucumber.js framework based test scripts in parallel with LambdaTest automation testing cloud but getting below error while running the script using below command.

‘npm run single’ and ‘npm run local’

Error : “CONFIG_FILE” is not recognized as an Internal external Command"

We need to add cross-env to ensure that npm run scripts run properly on windows 10.

Please install cross-env package using below command.

npm i cross-env

Update package.json file with the below command:

“single”: “cross-env CONFIG_FILE=single ./node_modules/cucumber/bin/cucumber.js features/single.feature”, “local”: “cross-env CONFIG_FILE=local ./node_modules/cucumber/bin/cucumber.js features/local.feature”, “parallel”: “cross-env CONFIG_FILE=parallel ./scripts/cucumber-runner.js features/single.feature”

1 Like