webdriverio: Couldn't load "wdio-cucumber-framework" framework.

I try to use wdio to generate my first project and found something below:

╭─chita at iMac in ~/git/webdrivertest/client using
╰─○ wdio config

=========================
WDIO Configuration Helper
=========================

? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? cucumber
? Shall I install the framework adapter for you? Yes
? Where are your feature files located? ./features/**/*.feature
? Where are your step definitions located? ./features/step-definitions/**/*.js
? Which reporter do you want to use? 
? Do you want to add a service to your test setup? 
? Level of logging verbosity: command
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost

Installing wdio packages:
pkg: wdio-cucumber-framework

Packages installed successfully, creating configuration file...

Configuration file was created successfully!
To run your tests, execute:

$ wdio wdio.conf.js

╭─chita at iMac in ~/git/webdrivertest/client using
╰─○ wdio wdio.conf.js

ERROR: Couldn't load "wdio-cucumber-framework" framework. You need to install it with `$ npm install wdio-cucumber-framework`!
Error: Cannot find module 'wdio-cucumber-framework'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)

and did I miss something ?

$ wdio -v          
v4.0.3

$  npm -v
3.3.12

$ node -v
v5.4.1

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (14 by maintainers)

Most upvoted comments

@lessless you can use it as a local dependency. Just be sure to use the binary from inside your project’s /node_modules/ instead of the global wdio command. you can create a symbolic link, set up a grunt/gulp task, or make an npm script to do this.
Example:

node_modules/.bin/wdio wdio.conf.js

Im sucessfully using webdriverIO and wdio-cucmber-framework without installing anything globally. Im working on a pre-configured bolierplate if you want to take a look. still a WIP, but i think it will show you how you could configure things. Suggestions welcome of course! https://github.com/dcypherthis/wdio-boilerplate-cucumber