trouble running cucumber-js under windows
See original GitHub issuehave 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:
- Created 11 years ago
- Comments:21 (5 by maintainers)
Top GitHub Comments
@Jon-Biz Try running
cucumber-js
instead ofcucumber.js
. Please open another issue if this doesn’t solve your problem.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 viacucumber-js