-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
WDIO Configuration Helper fails to create configuration file #2218
Comments
Please see the solution that was posted for this issue: #2215 (comment) |
@christian-bromann I just reinstalled node, and I'm getting the same failure - we use yarn rather than npm - do you think that might be related? When I look in my node_modules/webdriverio folder, there is no lib folder there at all |
Sorry but I can't reproduce this with yarn too. |
I have the same error when using |
This issue also happened with me when using |
@christian-bromann I had the same issue today so it might be worth trying again at your convenience. I did
when I run
Actually to continue with this, I think the above issue was due to having multiple versions of yarn and/or node installed. I tried Then calling
But when I ran
^^^ that's where node_modules's wdio and webdriverio got emptied. Then it could no longer find
Using My best guess at this point is that wdio is relying on something present with npm that isn't present with yarn, that causes it to try to repopulate node_modules's wdio and/or webdriverio. I've played around with having other things in package.json like:
before running
Hopefully this helps you reproduce the issue! |
If you just need a quick fix or have no control over which package manager will be used for your project, here is a workaround that tells
Note that this obviously pretty slow the first time and also probably shouldn't be used in production. I don't know if this works on Windows because I haven't tested it, so if someone has working code for that I'll update my answer to be cross-platform. More info at https://stackoverflow.com/a/49438180/539149 |
The problem
I'm having the same issue that was reported in #1568
The text was updated successfully, but these errors were encountered: