WDIO Configuration Helper doesn't work using yarn
See original GitHub issueThe problem
WDIO Configuration Helper doesn’t work using yarn@1.0.1
.
Environment
- WebdriverIO version: 4.8.0
- Node.js version: 8.2.1
- Standalone mode or wdio testrunner: testrunner
- if wdio testrunner, running synchronous or asynchronous tests: n/a
- Additional wdio packages used (if applicable): n/a
Details
11:18 $ ./node_modules/.bin/wdio config
=========================
WDIO Configuration Helper
=========================
? Where do you want to execute your tests? On my local machine
? Which framework do you want to use? jasmine
? Shall I install the framework adapter for you? Yes
? Where are your test specs located? ./test/specs/**/*.js
? Which reporter do you want to use? dot - https://github.com/webdriverio/wdio-dot-reporter, spec - https://github.com/webdriverio/wdio-spec-reporter, allure - https://github.com/webdriverio/wdio-allu
re-reporter, json - https://github.com/fijijavis/wdio-json-reporter, concise - https://github.com/FloValence/wdio-concise-reporter
? Shall I install the reporter library for you? Yes
? Do you want to add a service to your test setup? selenium-standalone - https://github.com/webdriverio/wdio-selenium-standalone-service, webpack - https://github.com/leadpages/wdio-webpack-service, w
ebpack-dev-server - https://gitlab.com/Vinnl/wdio-webpack-dev-server-service
? Shall I install the services for you? Yes
? Level of logging verbosity verbose
? In which directory should screenshots gets saved if a command fails? ./errorShots/
? What is the base url? http://localhost
Installing wdio packages:
Packages installed successfully, creating configuration file...
fs.js:652
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/path/to/node_modules/webdriverio/build/lib/helpers/wdio.conf.ejs'
at Object.fs.openSync (fs.js:652:18)
at Object.fs.readFileSync (fs.js:553:33)
at renderConfigurationFile (/path/to/node_modules/webdriverio/build/lib/cli.js:292:28)
at /path/to/node_modules/webdriverio/build/lib/cli.js:282:17
at /path/to/node_modules/npm-install-package/index.js:31:5
at ChildProcess.exithandler (child_process.js:262:7)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
I’m opening this to track the issue that is related to here: https://github.com/webdriverio/webdriverio/issues/2215 https://github.com/webdriverio/webdriverio/issues/2218
Link to Selenium/WebdriverIO logs
N/A
Code To Reproduce Issue [ Good To Have ]
N/A
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
@wdio/config | Yarn - Package Manager
A helper utility to parse and validate WebdriverIO options. webdriver, wdio, wdio-utility. readme. WDIO Configurations Utility. A helper utility to parse ...
Read more >Configuration File - WebdriverIO
The configuration file contains all necessary information to run your test suite. It's a NodeJS module that exports a JSON.
Read more >Getting an error when running "npx wdio config" - Stack Overflow
Seems to be a problem with the latest version of the @wdio/cli dependency. I solved the problem by using an older version and...
Read more >wdio-eslinter-service - npm
To also have the eslinter service use an existing eslintrc configuration in your project, set includeProjectEslintrc to true in the wdio.conf.js ...
Read more >View Raw - UNPKG
exclude?: string[]; /** * Files to watch when running `wdio` with the `--watch` ... @param config wdio configuration object * @param capabilities list...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My observations:
Walk-around fix:
yarn add -D webdriverio
./node_modules/.bin/wdio config 
I have the same issue WDIO just deleted half of the packages from node_modules and broke with this error: