-
-
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
[🐛 Bug]: Updating wording on install command when installing dependencies in config wizard #12071
Comments
Hey @Stalinko , thanks for raising the issue.
The configuration wizard will use Yarn if it detects that your project is using it. Can you provide more details as you why you wouldn't want to have WebdriverIO install all the dependencies?
We are adding all dependencies as part of running an NPM or Yarn install script. So WebdriverIO doesn't actually do anything except on relying on these package managers to add the dependencies to the |
hey @christian-bromann thanks for response
Sorry I didn't know this. The wizard asks exactly whether I want to run
But without adding these dependencies the script is useless. It doesn't matter what I select during the wizard steps - if I say "no" to "npm install" in the end then all the packages I selected will be ignored, Maybe you should have split the last step into 2 like:
and in any case it should say "Would you like to run |
I agree, the wording should get fixed here.
Updating the I am not sure if it does this already but we could print out the dependencies that needs to be added so the user can inject them manually. Wdyt? |
Oooooh I've got it just now. I thought you're first updating the package.json somehow, and then just run "npm install" without arguments.
There IS a way to update package.json without actually installing the packages: https://stackoverflow.com/a/51433146/2244262 |
Correct.
Would you be interested raising a PR and contribute to the project? |
Thanks for reporting! We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers! |
Yes sure. Just need to learn your guidelines. Will try to commit soon 😄 |
Awesome, happy to help if there are any questions! |
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
latest
Node.js Version
latest
Mode
Standalone Mode
Which capabilities are you using?
No response
What happened?
I'm using the standard installer through yarn:
On the last step it asks if I want to run "npm install". I say "no" because I want to run "yarn" instead..
Then it creates the package.json with only one dependency:
Obviously the project won't work because it misses any other necessary packages.
If you try to run
yarn run wdio
it will fail.However if you say "yes" on the last step it won't only run "npm install", but will also prefill the package.json with all the necessary packages selected during install.
What is your expected behavior?
It must generate complete package.json with all the selected packages even if you say "no" to "Run npm install" on the last step of the wizard.
How to reproduce the bug.
Just run
yarn create wdio .
and press N on the last step.Then look at your package.json
Relevant log output
-
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: