Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NODE_ENV' is not recognized as an internal or external command #2

Open
bijivelayudhan opened this issue Jun 16, 2019 · 2 comments
Open

Comments

@bijivelayudhan
Copy link

D:\cucumber-and-puppeteer>npm test

[email protected] test D:\cucumber-and-puppeteer
NODE_ENV=test npx cucumber-js --no-strict

'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed. See above for more details.

Please help

@bijivelayudhan
Copy link
Author

installed cucumber html reporter using
npm i cucumber-html-reporter

But unable to see the html report with screenshot

@paulbjensen
Copy link
Member

Ah, looks like you're running this on Windows. I haven't tried running this on Windows, so that will be why that command won't work.

There's a way to sort this out - Try and install cross-env.

npm i cross-env

Then try and run this command:

cross-env NODE_ENV=test npx cucumber-js --no-strict

This should hopefully work. Let me know if it does.

Apologies for the delay, I only just discovered this GitHub issue now in the feed (the joys of working in Volvo Cars means you see lots of notifications for other projects, so this got a bit obscured).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants