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

Installing geckodriver and chromedrive at the same time fails #7496

Open
adimit opened this issue Aug 26, 2019 · 0 comments
Open

Installing geckodriver and chromedrive at the same time fails #7496

adimit opened this issue Aug 26, 2019 · 0 comments

Comments

@adimit
Copy link

adimit commented Aug 26, 2019

Do you want to request a feature or report a bug?
bug

What is the current behavior?
The packages geckodriver and chromedriver in their current respective versions (1.16.2, 76.0.0) cannot be yarn added at the same time. If they are in the same package.json and being installed at the same time, yarn install fails.

If the current behavior is a bug, please provide the steps to reproduce.
yarn init
yarn add geckodriver chromedriver

Output:

yarn add v1.17.3
warning ../../../package.json: No license field
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠄ geckodriver
error /home/aleks/var/tmp/geckodriver-test/node_modules/geckodriver: Command failed.
Exit code: 1
Command: node index.js
Arguments: 
Directory: /home/aleks/var/tmp/geckodriver-test/node_modules/geckodriver

Note, this was attempted by several co-workers, and not everybody could reproduce it on their machine. We have the same OS (Ubuntu 19.4) but different machines. My CPU (on which it fails) is:

Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz

A coworker who could reproduce the problem had the same machine & CPU. It may be a hardware problem.

Also, non-parallel installation, by yarn adding the packages individually was no problem, and can be used as a workaround (but yarn install if both are in the same package.json is still broken.)

npm install --save geckodriver chromedriver with both packages at the same time works.

The offending package.json:

{
  "name": "geckodriver-test",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "chromedriver": "^76.0.0",
    "geckodriver": "^1.16.2"
  }
}

If I should provide more info/assistance, please let me know.

What is the expected behavior?
Installation should not be a problem.

Please mention your node.js, yarn and operating system version.

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:        19.04
Codename:       disco
$ yarn --version
1.17.3
$ node --version
v10.16.1

Some additional information: The command does work in docker, using the official node image, on my machine & Ubuntu installation.

I've also attached the output of yarn's --verbose option for the above command.
yarn.log

I've also tried it with Ubuntu's own yarnpkg version of 1.13.0. It worked fine with that yarn version, so downgrading is also a possibility. I've no idea when the regression was introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant