question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trouble running cucumber-js under windows

See original GitHub issue

have followed the guidance, installed nodejs via msi. file

after that npm install would work only under c:\programfiles \nodejs. and everytime copied my whole workshop folder structure under node.js.

i tried both local and global npm run. after restrating machine i was able to run npm install to run under my workshop as workshopfolder\npm install --dev

it went smooth with instaling

however when i type @node_env=test … as in guidance. it keep saying that it s not recognized command

however when i type cucumber.js it gives me script error pop up. saying :

Script:

c.:\ users.currentuser\appdata\roaming\npm\cucumber.js

line:1 char:1 error:invalid character code:800a03f6 source: miscrosoft jscript compilation error

when i open c.:\ users.currentuser\appdata\roaming\npm\cucumber.js i am having this

!/bin/sh

if [ -x “dirname "$0"/node” ]; then “dirname "$0"/node” “dirname "$0"/…/cucumber/bin/cucumber.js” “$@” ret=$? else node “dirname "$0"/…/cucumber/bin/cucumber.js” “$@” ret=$? fi exit $ret


thanks for prompt response #jbpros

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
jbproscommented, Sep 9, 2012

@Jon-Biz Try running cucumber-js instead of cucumber.js. Please open another issue if this doesn’t solve your problem.

5reactions
charlierudolphcommented, Apr 5, 2018

If you installed cucumber globally, uninstall it. Then from your project path, run ./node_modules/.bin/cucumber-js. If you add ./node_modules/.bin/ to your path, then you should be able to execute it via cucumber-js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cucumber JS sample not working in my local system
I am trying to execute cucumber-js sample program http://cucumber.github.io/cucumber-js/ in my local windows system,. node version 0.10.26 npm version 1.4.3.
Read more >
Cucumber.js - Cucumber Documentation
Watch the Cucumber School video lesson on installing Cucumber.js here. Cucumber.js is available as an npm module. It works with both Node.js and...
Read more >
CukeTest
With CukeTest, you can write Cucumber.js test scripts with JavaScript quite easily. ... running, and help users discover problems in the script more...
Read more >
Cucumber.js Tutorial with Examples For Selenium JavaScript
This Cucumber.js tutorial will help you automate browser testing with Selenium & JavaScript across a cloud-based Selenium Grid of 2000+ ...
Read more >
updated-selenium-cucumber-js
node_modules/updated-selenium-cucumber-js/index.js" for windows ... By default tests are run using Google Chrome, to run tests using another ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found