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

Cannot find module 'cucumber' on Windows 7 64 bits #908

Closed
abarriosh opened this issue Aug 19, 2017 · 2 comments
Closed

Cannot find module 'cucumber' on Windows 7 64 bits #908

abarriosh opened this issue Aug 19, 2017 · 2 comments

Comments

@abarriosh
Copy link

I have problems running cucumber on Windows 7 64bit. I installed cucumber globally and set the variable NODE_PATH. I verify with node -> require('cucumber') and the result confirms that 'cucumber' is setted up OK. But when i execute "cucumber-js" in the command line the following error is present:

C:\protractor-test>cucumber-js
Error: Cannot find module 'cucumber' from 'C:\protractor-test'
at C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\node_modules\r
esolve\lib\async.js:48:31
at processDirs (C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\n
ode_modules\resolve\lib\async.js:182:39)
at ondir (C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\node_mo
dules\resolve\lib\async.js:197:13)
at load (C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\node_mod
ules\resolve\lib\async.js:80:43)
at onex (C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\node_mod
ules\resolve\lib\async.js:105:17)
at C:\Users\Usuario\AppData\Roaming\npm\node_modules\cucumber\node_modules\r
esolve\lib\async.js:26:73
at FSReqWrap.oncomplete (fs.js:123:15)

Any idea? Thanks

@charlierudolph
Copy link
Member

Cucumber cannot be used globally. It needs to be required in your step definitions, and this requires a local install. It appears we need to update the error message when you do not have cucumber installed locally.

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants